{"id":1689,"date":"2011-03-24T18:41:00","date_gmt":"2011-03-24T18:41:00","guid":{"rendered":"http:\/\/salientsoft.co.uk\/?p=1689"},"modified":"2011-12-24T18:41:45","modified_gmt":"2011-12-24T18:41:45","slug":"escaping-quotes-and-other-characters-in-jsf-expression-language","status":"publish","type":"post","link":"https:\/\/salientsoft.co.uk\/?p=1689","title":{"rendered":"Escaping quotes and other characters in JSF Expression Language"},"content":{"rendered":"<p>Some quick points on this are as follows:-<\/p>\n<ul>\n<li>If you are using double quotes at the out level e.g. for HTML attributes, use single quotes inside the EL expressions<\/li>\n<li>If you need quotes inside the EL, escape them with backslash as per normal Java standards<\/li>\n<\/ul>\n<p>An example of an attribute containing EL with escaped quotes follows (note that the blog post may mess up the quote appearance slightly) :-<\/p>\n<blockquote>\n<p>onstart=&quot;return #{empty cc.attrs.onstart ? &#8216;true&#8217; : el:format1(cc.attrs.onstart, el:concat3(&#8216;\\&#8221;, component.clientId, &#8216;\\&#8221;))}&quot;<\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Some quick points on this are as follows:- If you are using double quotes at the out level e.g. for HTML attributes, use single quotes inside the EL expressions If you need quotes inside the EL, escape them with backslash as per normal Java standards An example of an attribute containing EL with escaped quotes [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[22],"tags":[170,40,184,16],"_links":{"self":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1689"}],"collection":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1689"}],"version-history":[{"count":1,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1689\/revisions"}],"predecessor-version":[{"id":1690,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1689\/revisions\/1690"}],"wp:attachment":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1689"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1689"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1689"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}