Webmastersite.net
Register Log In

Stripped function for custom fields
I'd like to strip HTML from custom fields

Comments on Stripped function for custom fields

fusionx
Experienced

Usergroup: Customer
Joined: Jun 18, 2008

Total Topics: 22
Total Comments: 85
fusionx
Posted Aug 27, 2008 - 8:28 PM:

I've searched the manual and forum and can't find anything on this. I was certain I saw something about being able to strip HTML from custom fields, the same way you can use {LINKDESCRIPTIONSTRIPPED}.

Is this possible without using PHP?
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Aug 28, 2008 - 11:34 PM:

I believe you'll need to add a pseudomethod, like
function htmlstripped($object, $field)
{ // {LINKHTMLSTRIPPED[fieldname]}
return striptags($object->$field);
}
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



Sorry, you don't have permission to post posts. Log in, or register if you haven't yet.