Html-scanner in controller?

Rails’ docs state for strip_tags:

“Strips all HTML tags from the input, including comments. This uses the
html-scanner tokenizer and so itâ??s HTML parsing ability is limited by
that of html-scanner.Returns the tag free text.”

What’s “html-scanner” (some brief Googling didn’t find anything
definitive) and can I use it in a controller?

Joe

Am Dienstag, den 14.03.2006, 22:06 +0100 schrieb Joe:

Rails’ docs state for strip_tags:

“Strips all HTML tags from the input, including comments. This uses the
html-scanner tokenizer and so itâ??s HTML parsing ability is limited by
that of html-scanner.Returns the tag free text.”

What’s “html-scanner” (some brief Googling didn’t find anything
definitive) and can I use it in a controller?

It’s here:

actionpack\lib\action_controller\vendor\html-scanner\html\tokenizer.rb


Norman T.

http://blog.inlet-media.de

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs