Custom test to demonstrate everything breaks#15
Custom test to demonstrate everything breaks#15wilsonge wants to merge 3 commits intojoomla-framework:1.x-devfrom
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