h() উদ্ধৃতি অব্যাহতি জন্য দরকারী।
উদাহরণস্বরূপ, আমার একটি ভিউ আছে যা পাঠ্য ক্ষেত্রটি ব্যবহার করে একটি লিঙ্ক উত্পন্ন করে result[r].thtitle। পাঠ্যটিতে একক উদ্ধৃতি অন্তর্ভুক্ত থাকতে পারে। আমি যদি result[r].thtitleনিশ্চিতকরণ পদ্ধতিতে পালাতে না পারি তবে জাভাস্ক্রিপ্টটি ভেঙে যাবে:
<%= link_to_remote "#{result[r].thtitle}", :url=>{ :controller=>:resource,
:action =>:delete_resourced,
:id => result[r].id,
:th => thread,
:html =>{:title=> "<= Remove"},
:confirm => h("#{result[r].thtitle} will be removed"),
:method => :delete %>
<a href="#" onclick="if (confirm('docs: add column &apos;dummy&apos; will be removed')) { new Ajax.Request('/resource/delete_resourced/837?owner=386&th=511', {asynchronous:true, evalScripts:true, method:'delete', parameters:'authenticity_token=' + encodeURIComponent('ou812')}); }; return false;" title="<= Remove">docs: add column 'dummy'</a>
দ্রষ্টব্য: :htmlশিরোনামের ঘোষণাটি জাদুকরীভাবে রেলগুলি দ্বারা পালিয়ে গেছে।
&<>"'/