Note that there are some explanatory texts on larger screens.

plurals
  1. POShowing check box label with single quotes
    primarykey
    data
    text
    <p>Not able to show jQuery mobile check box with values like aa''a@a.com</p> <pre><code>@contact_info = [{:source_id=&gt;40021, :object=&gt;"148302514605161.2", :account_number=&gt;"332950", :contact_type=&gt;"E", :contact_value=&gt;"aa''a@a.com", :sequence=&gt;"1"}, {:source_id=&gt;40021, :object=&gt;"148302514605162.2", :account_number=&gt;"332950", :contact_type=&gt;"E", :contact_value=&gt;"asdf@asd.org", :sequence=&gt;"2"}, {:source_id=&gt;40021, :object=&gt;"148302514605163.2", :account_number=&gt;"332950", :contact_type=&gt;"E", :contact_value=&gt;"dog@g.com", :sequence=&gt;"3"}, {:source_id=&gt;40021, :object=&gt;"148302514605164.2", :account_number=&gt;"332950", :contact_type=&gt;"E", :contact_value=&gt;"gh'g@ff.bn", :sequence=&gt;"4"}, {:source_id=&gt;40021, :object=&gt;"148302514605165.2", :account_number=&gt;"332950", :contact_type=&gt;"F", :contact_value=&gt;"2579525795", :sequence=&gt;"5"}] </code></pre> <p>In .erb file</p> <pre><code> &lt;table id="previous_email_fax_list"&gt; &lt;% if @contact_info. size &gt; 0 %&gt; &lt;% @contact_info.each do |contact|%&gt; &lt;tr&gt; &lt;td style="border:1px solid black;"&gt; &lt;div class="email_fax_check"&gt; &lt;input type="checkbox" name="&lt;%= contact.contact_value %&gt;" id="&lt;%= contact.contact_value %&gt;" class="custom" /&gt; &lt;label for="&lt;%= contact.contact_value %&gt;"&gt;&lt;br/&gt;&lt;/label&gt; &lt;/div&gt; &lt;div class="email_fax_label"&gt; &lt;% if contact.contact_type == "E" %&gt; &lt;%= contact.contact_value %&gt; &lt;% elsif contact.contact_type == "F" %&gt; &lt;%= number_to_fax(contact.contact_value) %&gt; &lt;% end %&gt; &lt;/div&gt; &lt;/td&gt; &lt;/tr&gt; &lt;% end %&gt; &lt;% else %&gt; &lt;tr&gt; &lt;td align='center'&gt; No email addresses or fax numbers found for this account &lt;/td&gt; &lt;/tr&gt; &lt;% end %&gt; &lt;/table&gt; </code></pre> <p>I am getting <code>Error: Syntax error, unrecognized expression: for='gh'g@ff.bn']</code></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload