Welcome! » Log In » Create A New Profile

E-mail address filtering

Posted by Liquidice 
Liquidice
E-mail address filtering
January 17, 2008 05:08PM

Is there any functionality built into htmlpurifier for finding and replacing email addresses?

Just asking so I don't reinvent the wheel if there is. I need to find email addresses and replace them with an obfuscated version.

Thanks :)

Re: E-mail address filtering
January 17, 2008 05:10PM

Nope. You're welcome to submit a patch implementing the behavior; I imagine an Injector or Filter would work best.

Liquidice
Re: E-mail address filtering
January 17, 2008 05:22PM

Ok I'll check that out tomorrow.

Thanks :)

Author:
Your Email:

Subject:

HTML input is enabled. Make sure you escape all HTML and angled brackets with < and >.

Auto-paragraphing is enabled. Double newlines will be converted to paragraphs; for single newlines, use the pre tag.

Allowed tags: a, abbr, acronym, b, blockquote, caption, cite, code, dd, del, dfn, div, dl, dt, em, i, ins, kbd, li, ol, p, pre, s, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, var.

For inputting literal code such as HTML and PHP for display, use CDATA tags to auto-escape your angled brackets, and pre to preserve newlines:

<pre><![CDATA[
Place code here
]]></pre>

Power users, you can hide this notice with:

.htmlpurifier-help {display:none;}

Message: