Webmastersite.net
Register Log In

Stripping HTML from Custom Meta Tag

Comments on Stripping HTML from Custom Meta Tag

jsfent
Member

Usergroup: Customer
Joined: Dec 01, 2007

Total Topics: 12
Total Comments: 24
jsfent
Posted Sep 10, 2008 - 10:02 PM:

I set up WSN Links to grab the section and details descriptions for the "description" meta tag, but sometimes it runs into some HTML which doesn't work in the meta tag and messes up the page. How can I strip out the HTML before it gets written to the meta tag?

thx.
Jackie
http://www.elementlist.com/lnx

Paul
developer

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

Total Topics: 61
Total Comments: 7867
Paul
Posted Sep 11, 2008 - 4:27 PM:

This is the "get meta description" button? I'll change it to strip HTML, though nobody should use HTML inside a meta tag because it'll mess up the search engine listing too.

If you're really using the version you say you're using, please pay attention to critical security updates.
jsfent
Member

Usergroup: Customer
Joined: Dec 01, 2007

Total Topics: 12
Total Comments: 24
jsfent
Posted Sep 18, 2008 - 7:13 PM:

I used this for the meta tag

IF {TID} contains detailcomments
meta name="description" content="{LINKDESCRIPTION[200]}"

Some of my descriptions have HTML and images, so that is why the HTML gets written to the description meta tag.
jsfent
Member

Usergroup: Customer
Joined: Dec 01, 2007

Total Topics: 12
Total Comments: 24
jsfent
Posted Sep 18, 2008 - 7:13 PM:

I used this for the meta tag

IF {TID} contains detailcomments
meta name="description" content="{LINKDESCRIPTION[200]}"

Some of my descriptions have HTML and images, so that is why the HTML gets written to the description meta tag.
Paul
developer

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

Total Topics: 61
Total Comments: 7867
Paul
Posted Sep 20, 2008 - 8:53 AM:

Use {LINKDESCRIPTIONSTRIPPED[200]} then.
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.