how to not resolve an entry?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
CodeLobster

how to not resolve an entry?

Post by CodeLobster »

i need this

Code: Select all

"ignore<crlf>this"
to be shown instead of

Code: Select all

"ignore
this"
ie, "<crlf>" MUST be displayed as it is, instead of resolved to a line feed.

this will still get <crlf> resolved:

Code: Select all

echo "ignore" . "<crlf>" . "this";
the real usage of this is that i need to write files in which "<crlf>" must be written as it is.

how?

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: how to not resolve an entry?

Post by TheQwerty »

You use single quotes:

Code: Select all

echo "ignore" . '<crlf>' . "this";
echo 'ignore<crlf>this'; //Same as above

CodeLobster

Re: how to not resolve an entry?

Post by CodeLobster »

thats it.

not completely familiar with the language but documentation and support are being of invaluable help.

thanks.

admin
Site Admin
Posts: 67270
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: how to not resolve an entry?

Post by admin »

Dirty but working as well:

Code: Select all

echo "ignore<" . "crlf>this";

Post Reply