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

Bert Bert
Sun Nov 8 18:25:11 CET 2015


Hello,

Using TYPO3 6.2.15, Solr 3.0.2, tika 2.0.0-dev and solrfal 2.0.1

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-project-solr mailing list