Asked by Eidos_IT
at 2024-11-30 17:58:00
Point:500 Replies:6 POST_ID:828855USER_ID:11767
Topic:
WordPress;JavaScript;Hypertext Markup Language (HTML)
I have a php page with JavaScript to be used on a wordpress page,but when the page is generated all <div> <p> etc. appends new lines. Example :
Test.php ->
<script type="text/javascript">
alert('hello<div>world</div>');
</script>
When I view-source there is new lines on each html-tags : <div><p> - which breaks the JavaScript syntax
I tried to remove filter wpautop on content, but no go :(
Thanks
Test.php ->
<script type="text/javascript">
alert('hello<div>world</div>');
</script>
When I view-source there is new lines on each html-tags : <div><p> - which breaks the JavaScript syntax
I tried to remove filter wpautop on content, but no go :(
Thanks
Attachment:php-newlines.PNG