codecolorer icon indicating copy to clipboard operation
codecolorer copied to clipboard

converting < to &lt; and > to &gt; (html entities) in apache lang.

Open Abu3safeer opened this issue 8 years ago • 1 comments

Hello everyone, I tried to use apache code inside my article in this way: [cc lang="apache"] <VirtualHost *:80> ServerAdmin [email protected] DocumentRoot "F:/xampp/htdocs/dummy-host.example.com" ServerName dummy-host.example.com ServerAlias www.dummy-host.example.com ErrorLog "logs/dummy-host.example.com-error.log" CustomLog "logs/dummy-host.example.com-access.log" common </VirtualHost> [/cc] < and > signs converted to html entities inside code box, so the result is: <VirtualHost *:80> ServerAdmin [email protected] DocumentRoot "F:/xampp/htdocs/dummy-host.example.com" ServerName dummy-host.example.com ServerAlias www.dummy-host.example.com ErrorLog "logs/dummy-host.example.com-error.log" CustomLog "logs/dummy-host.example.com-access.log" common </VirtualHost>

Abu3safeer avatar Dec 06 '17 08:12 Abu3safeer

If you're using Visual Editor - try adding escaped="true"

kpumuk avatar Dec 06 '17 17:12 kpumuk