We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello!
Let's check following code:
$allowedTagsList = [ 'a', 'p', 'div', ]; $config = HTMLPurifier_Config::createDefault(); $config->set('Core.EscapeInvalidTags', true); $config->set('HTML.AllowedElements', $allowedTagsList); $purifier = new HTMLPurifier($config); $htmlBody = $purifier->purify($htmlBody);
$htmlBody before purifying <p>Hello! I want attach following xml:</p><p><someGreatTag>someGreatValue</someGreatTag></p>
<p>Hello! I want attach following xml:</p><p><someGreatTag>someGreatValue</someGreatTag></p>
Expected after purifying <p>Hello! I want attach following xml:</p><p><someGreatTag>someGreatValue</someGreatTag></p>
<p>Hello! I want attach following xml:</p><p><someGreatTag>someGreatValue</someGreatTag></p>
But in reality <p>Hello! I want attach following xml:</p><p><somegreattag>someGreatValue</somegreattag></p>
<p>Hello! I want attach following xml:</p><p><somegreattag>someGreatValue</somegreattag></p>
So, any denied tag lose capitalization (someGreatTag -> somegreattag)
someGreatTag
somegreattag
php 7.4.27 htmlpurifier 4.14.0
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello!
Let's check following code:
$htmlBody before purifying
<p>Hello! I want attach following xml:</p><p><someGreatTag>someGreatValue</someGreatTag></p>
Expected after purifying
<p>Hello! I want attach following xml:</p><p><someGreatTag>someGreatValue</someGreatTag></p>
But in reality
<p>Hello! I want attach following xml:</p><p><somegreattag>someGreatValue</somegreattag></p>
So, any denied tag lose capitalization (
someGreatTag
->somegreattag
)php 7.4.27
htmlpurifier 4.14.0
The text was updated successfully, but these errors were encountered: