Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BBCode replacing URLs in contents #29

Open
erisanolasheni opened this issue May 8, 2020 · 2 comments
Open

BBCode replacing URLs in contents #29

erisanolasheni opened this issue May 8, 2020 · 2 comments

Comments

@erisanolasheni
Copy link

erisanolasheni commented May 8, 2020

Hello I am current having this issues and it's quite annoying as BBCode parser is currently wrapping all url in <a> tags. I have disabled the Replace links options in all my custom BBCode tags so I don't know how this is happening.

Example use:

from precise_bbcode.bbcode import get_parser

body = '<html><head><title>Document</title></head><body><a href="https://html.spec.whatwg.org/">WHATWG HTML</a>.</body></html>';
parser = get_parser()
rendered = parser.render(body)

print(rendered)

Outputs

<a href="&lt;a href=" https:="" title="WHATWG HTML"><a href="https://html.spec.whatwg.org/">https://html.spec.whatwg.org/</a></a>

I think there should be a global setting that could be used to disable replace links for BBCodes tags, thank you.

@theinvestigamer
Copy link

Has this ever been addressed? I'm having the same issue

@Goury
Copy link

Goury commented Aug 8, 2023

I feel like fixing this one next

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants