dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

strip-html-tags (146B)


      1 #!/usr//bin/env ruby
      2 text = File.read("text.txt")
      3 newtext = text.gsub(/<\/?[^>]+(>|$)/, "")
      4 File.open("text.txt","w") { |file| file.puts newtext}