strip html

By Ayon on Jul 16, 2009

This little thing strips html from a string

Usage:
$striphtml(html goes here)

alias striphtml {
  noop $regsub($htmlencode($1-),/(<(?:.+?)>)/g,$null,%string)
  return %string
}

Comments

Sign in to comment.
Jethro   -  Jul 16, 2009

You forgot to include your $htmlencode alias here. Or just $1- will do.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.