
Dave
Staff
/ Moderator

Jul 22, 2002, 5:54 PM
Post #4 of 7
(3106 views)
Shortcut
|
|
Re: [Disciple1] Search Engines
[In reply to]
|
Can't Post
|
|
One more tip, when you're putting placeholders inside tags like this: <META name="description" content="$art_summary$"> If the user enters a " in their content it will break the tag. We have a few special "placeholder modifiers" you can tack on the end of a placeholder to change the output. Adding "_he", for example, HTML encodes (using HTML entities) the following chars: ', ", <, and >. So with HTML encoding the line would be: <META name="description" content="$art_summary_he$"> If a user enters " it will be output as " which browsers display as " anyways, but it doesn't break the tag by closing the content attribute too early. In anybody is curious, other placeholder modifiers are as follows, and you can only use one at a time: _ue - url encoding (when you want to pass the value in a link, like passing an address to a mapping site _he - HTML encoding (for including values in other tags) _nbsp - HTML encoding and forcing spaces to be (to make sure things don't wrap) _je - javascript encoding, for including values in javascript code (backslashes ' and a few other things) For the most part, you don't need to use them, but they're their if you do. If you want to put the summary value in the meta tag you'd probably want to use _he though. : ) Dave Edis - Senior Developer interactivetools.com
|