homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
Forum Library, Charter, Moderators: phranque

Website Technology Issues Forum

I can't use form text areas with my site. How to present code to users?

 4:03 pm on Sep 25, 2009 (gmt 0)

I need to provide code for visitors/users to copy and paste (I'm asking people who want to link to our site to use an image hosted on our site) ... but, unfo, this particular CMS site does not allow me use a form and text areas in which I would normally present the code.

Do you know of another way to present code without using scripts (which are also verbotten in this particular instance)?



 4:57 pm on Sep 25, 2009 (gmt 0)

The problem is the quotes and carats, and sometimes ampersands (rarely, if the previous are addressed.) The right way is to encode quotes and carats with html entities (", <, >, &) in the CMS programming before they are stored anywhere.

If you can't modify it, perhaps you can write/locate some Javascript that converts the quotes and carats to entities before submitting.


 6:16 pm on Sep 25, 2009 (gmt 0)

Thanks, Bill ... I encoded the HTML characters within a DIV. I was worried the CMS would freak out on them but it worked like a charm!

Global Options:
 top home search open messages active posts  

Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved