What about we replace the modsummary entries with Bunsters Magic scrubber? Looks like it would do the trick... just haven't tested it in the wild:

<cfscript>
// example nasty-ass input string
string="<p>Expérimentation « Immersion de longue durée » : une coopération de 6 équipes de recherche. Présentation générale de l’opération.
Cinétique du statut hémodynamique après 6h d’immersion fraîche. L’exposition au froid restreint la perfusion sanguine périphérique après plongée.
Recherche de bulles artérielles cérébrales après plongée à l’air chez l’homme. Relation avec le shunt D/G et la charge en bulles veineuses circulantes.
©2004 Megacorp.</p>";


regex='[^[:ascii:]]'; // magic pixy dust

p=REFind(regex,string); // any nasties?
for(p=p; p neq 0; p=REFind(regex,string)) { // loop until no more nasties
string=replace(string,mid(string,p,1),"&###asc(mid(string,p,1))#;","all"); // replace nasties with entities
}

writeOutput(string);
</cfscript>


Brendan Sisson wrote:

Rob Kolosky wrote:

I added the following to rss.cfc, round about line 200:

modsummary = ReplaceNoCase(modsummary, chr(8217), "'", "ALL"); //smart apostrophe
modsummary = ReplaceNoCase(modsummary, chr(8211), "-", "ALL"); //emdash



Hi Rob,

I have added these changes to cvs, please get the latest files and test.

-Brendan
http://farcry.daemon.com.au



--- You are currently subscribed to farcry-dev as: [email protected] To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to