Skips over quoted strings, so that less-than and greater-than characters within the strings are ignored.
Source Code
# File action_controller/vendor/html-scanner/html/tokenizer.rb, line 80 def consume_quoted_regions text = "" loop do match = @scanner.scan_until(/['"<>]/) or break delim = @scanner.matched if delim == "<" match = match.chop @scanner.pos -= 1 end text << match break if delim == "<" || delim == ">" # consume the quoted region while match = @scanner.scan_until(/[\\#{delim}]/) text << match break if @scanner.matched == delim text << @scanner.getch # skip the escaped character end end text end
<code/>and<pre/>for code samples.