Exclude minify html inside the page
-
Hey there,
I am trying to display a code inside a page and show in there example for css code inside html code.
So basically i am trying to display this code inside html widget:
<pre class="html-page-code"><xmp> <head> <style> body { background: #c2c2c2; } </style> </head> </xmp></pre>It seems like when “CSS Combine External and Inline” option is selected the code is removed from the tag and added to the global page.
When i remove that option the code still show up but another problem i have is that the style code remove the break lines and this is what i get in the page instead of the code above:
<head><style>body { background: #c2c2c2; }</style></head>I have tried to add this class into CSS Excludes option
.html-page-code
And it doesn’t seem to fix the problem. Also when i remove the “CSS Combine External and Inline” i still unable to get the break lines to stay there.
The tag data-no-optimize=”1″ doesn’t seems to exclude it from the minify. Is there anything else i can do to make it work?
Thanks
The topic ‘Exclude minify html inside the page’ is closed to new replies.