Guest User

Untitled

a guest
Feb 28th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
TCL 0.28 KB | None | 0 0
  1. proc strip-html-ignore {text {ignore {}}} {
  2.     set c 0
  3.     foreach i $ignore {if {[regexp $i $text]} {return $text}}
  4.     return ""
  5. }
  6.  
  7. proc strip-html {html} {
  8.     regsub -all -- {<[^>]*>} $html "\[strip-html-ignore \[list &\] [list $ignore]\]" html
  9.     set html [subst $html]
  10.     return $html
  11. }
Add Comment
Please, Sign In to add comment