Lisa Wess - 28 January 2008 05:09 AM
TruncHTML can also help with stripping typography for dual use custom fields. =)
While I appreciate the usage of my plugin, in this case it won’t help, I think
It doesn’t strip anything, it just shortens text/html without leaving any html-tags open.
But to prevent things like this to happen:
<meta name="description" content="He said: "Good bye" and left." />
I’d recommend using {exp:xml_encode}{/exp:xml_encode} before shortening the text since you don’t want to have any quotation marks from the text messing up your markup.
<meta name="description" content="He said: "Good bye" and left." />