Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Hide email (HTML character entities doesn't work)


Go to End


4 Posts   2038 Views

Avatar
suntrop

Community Member, 141 Posts

11 May 2010 at 11:50pm

Edited: 12/05/2010 2:03am

I tried to insert an email address with its HTML character entities into the markup editor (/content editor).
But it turns all &#XXX; into their corresponding letters. So every spam bot can read the mail address :(

Is there any way to change that or to hide mails?

Avatar
mhill

Community Member, 3 Posts

1 October 2012 at 4:01am

I'm looking for a solution to this as well. I have an onBeforeWrite function in my Page class to look for email addresses and replace them with numeric entities, but SilverStripe is converting them back before writing to the database. Is there a way to get around this without changing core code? Thanks.

Avatar
helenclarko

Community Member, 166 Posts

30 October 2012 at 9:13am

Has anyone got a solution to this problem?

I would really like to prevent spambots from attacking my email addresses.

Thanks
-helenclarko

Avatar
cwsoft

Community Member, 57 Posts

30 October 2012 at 10:00am

@helenclarko: if you are using SilverStripe 3, you may want to check out the cwsoft-shortcode module, which provides a handy method to obfuscate mail adresses entered in the WYSIWYG editor: https://github.com/cwsoft/silverstripe-cwsoft-shortcode#readme

Cheers cwsoft