[TYPO3-english] TYPO3 & Solr: problem with htmlSpecialChars in links

Bert Bert
Sun Nov 8 15:56:07 CET 2015


Hello,

With the following snippet, I want to prepend every link with an icon, 
according its type:

plugin.tx_solr.search.results.fieldRenderingInstructions {
      title = TEXT
      title {
         field = title
         htmlSpecialChars =1
         htmlSpecialChars.preserveEntities =1

             prepend = CASE
             prepend {
             key.field = type

             pages = TEXT
             pages.value = <img 
src="fileadmin/images/icons/page-icon.png" />

             tx_solr_file = TEXT
             tx_solr_file.value = <img 
src="fileadmin/images/icons/pdf-icon.png" />
         }
     }
}

However, htmlSpecialChars.preserveEntities =1 does not respect the  "<" 
and "/>" tags, these are rendered as "&lt;" and "/&gt;" respectively.

What is wrong here? Any suggestions? Thanks in advance!

Regards,
Bert


More information about the TYPO3-english mailing list