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

Wrong u tag #113

Open
general03 opened this issue May 18, 2016 · 7 comments
Open

Wrong u tag #113

general03 opened this issue May 18, 2016 · 7 comments
Labels

Comments

@general03
Copy link

When I want to put the string [U_] in bold, all my page are boken.
It's because [U_] is recognize like u tag but I only want display the string !

Do you have an escape method for this ?

Regards

@milesj
Copy link
Owner

milesj commented May 19, 2016

Are you talking about [u]? I'm a bit confused.

@general03
Copy link
Author

Yes, I want to display the string [U_] but it recognize like [u]

@milesj
Copy link
Owner

milesj commented May 19, 2016

Nope, sorry, there's no way to not parse a tag if it's been registered.

@general03
Copy link
Author

I think I didn't explain well my issue. I have this text
... blablabla blabla [b][U_][/b] blabla bla blablabla...
and I want to have this result
...blablabla blabla [U_] blabla bla blablabla...

So [U_] it's not a tag it's text for me but decoda recognize it like u tag

@milesj
Copy link
Owner

milesj commented May 20, 2016

Yeah, it's weird since _ isn't recognized during parsing: https://github.com/milesj/decoda/blob/master/src/Decoda/Decoda.php#L1020

Perhaps it's getting confused about attributes.

@general03
Copy link
Author

Can't you reproduce this issue ?

@milesj
Copy link
Owner

milesj commented May 23, 2016

I can reproduce but there's no way to solve this exact use case. It would completely break the parser as this is a valid tag, regardless of the _ and uppercase.

However, I decided to add support for literal tags: 6761bed Which will allow for tags to be rendered without transforming them, by supplying double brackets. For example, [[u]] will be rendered as [u] instead of <u>.

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

No branches or pull requests

3 participants