<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -12,4 +12,4 @@
           = link_to_function 'Available Tags', &quot;load_tag_reference('#{page_part.name.to_slug}');&quot;
       = render_region :part_controls, :locals =&gt; {:page_part =&gt; page_part}
     %div
-      ~ text_area_tag 'page[parts][][content]', page_part.content, :class =&gt; &quot;textarea&quot;, :style =&gt; &quot;width: 100%&quot;, :id =&gt; &quot;part_#{page_part.name.to_slug}_content&quot;
\ No newline at end of file
+      ~ text_area_tag 'page[parts][][content]', h(page_part.content), :class =&gt; &quot;textarea&quot;, :style =&gt; &quot;width: 100%&quot;, :id =&gt; &quot;part_#{page_part.name.to_slug}_content&quot;
\ No newline at end of file</diff>
      <filename>app/views/admin/page_parts/_page_part.html.haml</filename>
    </modified>
    <modified>
      <diff>@@ -34,6 +34,12 @@ describe 'Page management' do
     response.should have_text(/Under Construction/)
   end
   
+  it &quot;should properly escape part contents&quot; do
+    navigate_to '/admin/pages/new'
+    submit_form 'new_page', :continue =&gt; 'Save and Continue', :page =&gt; {:title =&gt; 'My Site', :slug =&gt; '/', :breadcrumb =&gt; 'My Site', :parts =&gt; [{:name =&gt; 'body', :content =&gt; '&amp;lt;r:url /&amp;gt;'}], :status_id =&gt; Status[:published].id}
+    response.should have_tag('textarea', :text =&gt; &quot;&amp;amp;lt;r:url /&amp;amp;gt;&quot;)
+  end
+  
   describe 'with homepage' do
     dataset :home_page
     </diff>
      <filename>spec/integration/admin/pages_integration_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>e88f129a9cb441bb0429b68a4767fa65b9a5c430</id>
    </parent>
  </parents>
  <author>
    <name>Sean Cribbs</name>
    <email>seancribbs@gmail.com</email>
  </author>
  <url>http://github.com/radiant/radiant/commit/300ffd5b535c7e3ee5981213c176396889e7c920</url>
  <id>300ffd5b535c7e3ee5981213c176396889e7c920</id>
  <committed-date>2009-02-12T15:37:57-08:00</committed-date>
  <authored-date>2009-02-12T15:37:57-08:00</authored-date>
  <message>Properly escape page part contents in the UI.</message>
  <tree>1b22bce3c790f12355e883107ebd04ca3e7dfd60</tree>
  <committer>
    <name>Sean Cribbs</name>
    <email>seancribbs@gmail.com</email>
  </committer>
</commit>
