{"id":18991431,"url":"https://github.com/aziascreations/extended-bbcode-parser","last_synced_at":"2026-02-02T12:33:43.900Z","repository":{"id":100759999,"uuid":"293978601","full_name":"aziascreations/Extended-BBCode-Parser","owner":"aziascreations","description":"A crude BBCode parser that outputs a string that contains HTML elements","archived":false,"fork":false,"pushed_at":"2020-09-09T02:17:45.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-26T06:41:29.332Z","etag":null,"topics":["bbcode","bbcode-parser","unsafe"],"latest_commit_sha":null,"homepage":"https://aziascreations.github.io/Extended-BBCode-Parser/demo.html","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aziascreations.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-09T02:16:45.000Z","updated_at":"2020-09-15T13:39:52.000Z","dependencies_parsed_at":"2023-06-09T16:15:33.764Z","dependency_job_id":null,"html_url":"https://github.com/aziascreations/Extended-BBCode-Parser","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aziascreations/Extended-BBCode-Parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aziascreations%2FExtended-BBCode-Parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aziascreations%2FExtended-BBCode-Parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aziascreations%2FExtended-BBCode-Parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aziascreations%2FExtended-BBCode-Parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aziascreations","download_url":"https://codeload.github.com/aziascreations/Extended-BBCode-Parser/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aziascreations%2FExtended-BBCode-Parser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29012612,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-02T10:37:29.253Z","status":"ssl_error","status_checked_at":"2026-02-02T10:37:28.644Z","response_time":58,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bbcode","bbcode-parser","unsafe"],"created_at":"2024-11-08T17:13:52.564Z","updated_at":"2026-02-02T12:33:43.871Z","avatar_url":"https://github.com/aziascreations.png","language":"HTML","readme":"# Extended BBCode Parser\n\nA crude BBCode parser that outputs a string that contains HTML elements.\n\nDo not use it on in a production/critical environment, it messes up often and easily.\n\n## Usage\n\nJust add the js file in your page and call the function `processText(rawText)` with your raw BBCode as the `rawText` argument.\n\nAnd you will either get the parsed HTML code or an error string that follows this format: `ERROR: \u003cmessage\u003e`.\n\nCheck \"[demo.html](demo.html)\" for an example, or \"[this link (UNAVAILABLE)]()\" for a live demo.\n\n## Specification\n\nGo to the \"[Specification page](specification.md)\" to read it.\n\n## Custom tags\n\nYou can easily add custom tags by modifying the `bbElements` constant.\n\nIt is an array of objects that follow this structure:\n\u003ctable\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd\u003e\u003cb\u003eField\u003c/b\u003e\u003c/td\u003e\n\t\t\u003ctd\u003e\u003cb\u003eType\u003c/b\u003e\u003c/td\u003e\n\t\t\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\n\t\u003c/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd\u003etags\u003c/td\u003e\n\t\t\u003ctd\u003eString[]\u003c/td\u003e\n\t\t\u003ctd\u003eArray that contains the BBCode tags that refer to this element.\u003c/td\u003e\n\t\u003c/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd\u003ehtmlElement\u003c/td\u003e\n\t\t\u003ctd\u003eString\u003c/td\u003e\n\t\t\u003ctd\u003eThe HTML element that will be used for opening and closing this tag.\u003c/td\u003e\n\t\u003c/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd\u003ehtmlElementDefaultParams\u003c/td\u003e\n\t\t\u003ctd\u003eString\u003c/td\u003e\n\t\t\u003ctd\u003eOptional String that is added to the opening HTML element if the `parameters` field is undefined, null or empty.\u003c/td\u003e\n\t\u003c/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd\u003eparameters\u003c/td\u003e\n\t\t\u003ctd\u003eParameter[]\u003c/td\u003e\n\t\t\u003ctd\u003eOptional array of Parameter objects that define all the possible parameters for the tag.\u003c/td\u003e\n\t\u003c/tr\u003e\n\u003c/table\u003e\n\nAnd here is the Parameter structure:\n\u003ctable\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd\u003e\u003cb\u003eField\u003c/b\u003e\u003c/td\u003e\n\t\t\u003ctd\u003e\u003cb\u003eType\u003c/b\u003e\u003c/td\u003e\n\t\t\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\n\t\u003c/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd\u003ename\u003c/td\u003e\n\t\t\u003ctd\u003eString[]\u003c/td\u003e\n\t\t\u003ctd\u003eArray of strings that correspond to this parameter.\u003c/td\u003e\n\t\u003c/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd\u003eisRequired\u003c/td\u003e\n\t\t\u003ctd\u003eBoolean\u003c/td\u003e\n\t\t\u003ctd\u003e\n\t\t\tIndicates wether or not this parameter is required to parse this tag.\u003cbr\u003e\n\t\t\tReturns an error message if the parameter is not declared in the BBCode.\n\t\t\u003c/td\u003e\n\t\u003c/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd\u003eisDefault\u003c/td\u003e\n\t\t\u003ctd\u003eBoolean\u003c/td\u003e\n\t\t\u003ctd\u003e\n\t\t\tIndicates wether or not this parameter is the one that will be parsed if it is joined to the tag like this: `[tag=val]`.\u003cbr\u003e\n\t\t\tReturns an error message if a parameter like this is used an no parameter is set as the default one.\n\t\t\u003c/td\u003e\n\t\u003c/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd\u003eisTagParameter\u003c/td\u003e\n\t\t\u003ctd\u003eBoolean\u003c/td\u003e\n\t\t\u003ctd\u003eIndicates wether or not the value of this parameter should be put inside the final HTML element as a value like: \u0026lt;a arg1=\"val1\"\u0026gt;.\u003c/td\u003e\n\t\u003c/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd\u003etagValueKey\u003c/td\u003e\n\t\t\u003ctd\u003eString\u003c/td\u003e\n\t\t\u003ctd\u003eUsed as the parameter key in the HTML element is `isTagParameter` is set to true.\u003c/td\u003e\n\t\u003c/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd\u003etagValueContentPrefix\u003c/td\u003e\n\t\t\u003ctd\u003eString\u003c/td\u003e\n\t\t\u003ctd\u003e???\u003c/td\u003e\n\t\u003c/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd\u003etagValueContentSuffix\u003c/td\u003e\n\t\t\u003ctd\u003eString\u003c/td\u003e\n\t\t\u003ctd\u003e???\u003c/td\u003e\n\t\u003c/tr\u003e\n\u003c/table\u003e\n\n\n## License\n\n[Unlicense](LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faziascreations%2Fextended-bbcode-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faziascreations%2Fextended-bbcode-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faziascreations%2Fextended-bbcode-parser/lists"}