lib/builder/xmlbase.rb in builder-1.2.1 vs lib/builder/xmlbase.rb in builder-1.2.2

- old
+ new

@@ -75,11 +75,11 @@ end # Append text to the output target. Escape any markup. May be # used within the markup brakets as: # - # builder.p { br; text! "HI" } #=> <p><br/>HI</p> + # builder.p { |b| b.br; b.text! "HI" } #=> <p><br/>HI</p> def text!(text) _text(_escape(text)) end # Append text to the output target without escaping any markup. @@ -91,10 +91,10 @@ # generates strings. Just insert the string directly into the # builder without changing the inserted markup. # # It is also useful for stacking builder objects. Builders only # use <tt><<</tt> to append to the target, so by supporting this - # method/operation builders can use oother builders as their + # method/operation builders can use other builders as their # targets. def <<(text) _text(text) end