# Generating ERB templates with XMLBuilder

**URL:** <https://www.ruby-forum.com/t/generating-erb-templates-with-xmlbuilder/131261>\
**Category:** Ruby\
**Created:** [March 7, 2008, 2:00pm UTC](https://www.ruby-forum.com/t/generating-erb-templates-with-xmlbuilder/131261 "2008-03-07T14:00:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bryanl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/43a26b/32.png) [@bryanl](https://www.ruby-forum.com/u/bryanl)\
**Post date:** [March 7, 2008, 2:00pm UTC](https://www.ruby-forum.com/t/generating-erb-templates-with-xmlbuilder/131261/1 "2008-03-07T14:00:51Z")

</div>

Is it possible to get XMLBuilder to stop escaping entities for just  
one tag?

I’m trying to generate an ERB template that generates XML:

xml.toys do  
xml.toy do  
xml.name "\<%= name %\>  
end  
end

The builder outputs the proper xml, but it escapes the template.
