I've been searching all over the place to see which characters need to be escaped. I know that in order to print text with the characters @#$%&"'\, that I have to escape them by typing \@\#\$\%\&\"\'\\. I also found a list of the text that can be escaped, like \n,\r,\Q ... \E, etc. but I can't find a full list of non-alphabet characters that need to be escaped.
If you post your email address and don't plan to have a contact form, use www.addressmunger.com.
“The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
—Tim Berners-Lee, W3C Director and inventor of the World Wide Web
... I know that in order to print text with the characters @#$%&"'\, that I have to escape them by typing \@\#\$\%\&\"\'\\.
Not quite true if you really mean 'print....'
If you put your print statement in 'single' quotes, then the only chars that need to be escaped are.... any nested 'single' quotes and the escape char '\'.
If you put your print statement in 'single' quotes, then the only chars that need to be escaped are.... any nested 'single' quotes and the escape char '\'.
print 'CHARS: @#$%&"/ \' \\' ."\n";
What if I plan on putting everything in double quotes?
“The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
—Tim Berners-Lee, W3C Director and inventor of the World Wide Web
Bookmarks