You are here

Problem to post some content

4 posts / 0 new
Last post
tapsklaps
Offline
Last seen: 1 month 11 hours ago
Developer
Joined: 2010-10-17 08:11
Problem to post some content

I have tried to write some code in another post (see my post with the subject Solution for the standalone version), but it's impossible. Amongst other things I used the signs "". But at the "Entry" not the correct content will be depicted. The same occurs for "TrimRight". What should I do?

Chris Morgan
Chris Morgan's picture
Offline
Last seen: 9 years 8 months ago
Joined: 2007-04-15 21:08
HTML entity encoding

You need to perform HTML entity encoding manually. That means, instead of < use &lt;, and instead of > use &gt;, and instead of & use &amp;.

See https://portableapps.com/filter/tips for more info.

I am a Christian and a developer and moderator here.

“A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1

tapsklaps
Offline
Last seen: 1 month 11 hours ago
Developer
Joined: 2010-10-17 08:11
HTML entity for whitespace

Thank you for the prompt and accurate reply. I also used whitespaces in this code. Exist for these whitespaces also a HTML entity?

Chris Morgan
Chris Morgan's picture
Offline
Last seen: 9 years 8 months ago
Joined: 2007-04-15 21:08
Use <pre>

Put code inside the <pre> tag. That preserves whitespace.

<pre>
&lt;code
      goes
           here&gt;
</pre>

This would produce:

<code
      goes
           here>

I am a Christian and a developer and moderator here.

“A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1

Log in or register to post comments