class Haml::Parser
def plain(line, escape_html = nil)
def plain(line, escape_html = nil) if block_opened? raise SyntaxError.new(Error.message(:illegal_nesting_plain), @next_line.index) end unless Util.contains_interpolation?(line.text) return ParseNode.new(:plain, line.index + 1, :text => line.text) end escape_html = @options.escape_html && @options.mime_type != 'text/plain' if escape_html.nil? line.text = Util.unescape_interpolation(line.text) script(line, false).tap { |n| n.value[:escape_interpolation] = true if escape_html } end