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
I have html with script inline:
<script> { const btn = document.querySelector("#test3"); btn.addEventListener("click", e => { document.querySelector("#test3div").innerHTML = ` <div class="module"> <h2>lorem ipsum</h2> <p>lorem <strong>lorem </strong></p> <button class="button">klik</button> </div> `; }); } </script>
I use your class:
function generateContentTable($content) { $dom = new DomQuery($content); return $dom->find('html')->html(); }
where $content is all html. This generate wrong html:
<script> { const btn = document.querySelector("#test3"); btn.addEventListener("click", e => { document.querySelector("#test3div").innerHTML = ` <div class="module"> <h2>lorem ipsum <p>lorem <strong>lorem </strong> <button class="button">klik </script> </div> `; }); }
The text was updated successfully, but these errors were encountered:
After while i find this: https://stackoverflow.com/questions/24575136/domdocument-removes-html-tags-in-javascript-string#answer-66474146
Sorry, something went wrong.
No branches or pull requests
I have html with script inline:
I use your class:
where $content is all html. This generate wrong html:
The text was updated successfully, but these errors were encountered: