-
-
Notifications
You must be signed in to change notification settings - Fork 22
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
Custom test to demonstrate everything breaks #15
base: 1.x-dev
Are you sure you want to change the base?
Conversation
It all starts here: https://github.com/joomla-framework/filter/blob/master/src/InputFilter.php#L335 Just a possible solution off the top of my head:
If this workaround it acceptable, let me know and I'll be more than happy to do it. |
@wilsonge |
@wilsonge You doing anything with this? |
I can't find a way to "make this work" :( But there's definitely an issue that needs solving as the unit test demonstrates |
Could we utilize HTML parsing with the PHP DOM module, for this part of the Filter to bypass the overly broad assumption that there is a tag if there is a |
Possibly? Still should account for what'll probably be rare cases where PHP is configured with |
I can add such improvement direct to joomla after joomla/joomla-cms#16201 will be merged.
|
I'd expect from the string filter that Would problems arise, if that behaviour gets implemented into 1.x? I'd like to add it to 2.0 in any case. |
This is still a current issue. |
So if you run a string containing a symbol
<
through the filter class then you find that it gets stripped.It's something inside the tag cleaning - but obviously we don't want all
<
tags to be stripped