Is there a way for the Search Widget to recognize HTML formatting in the Search Result? The List widget and Feature Info widget correctly break the Owner Names into new lines, however the Search Result simply shows the text with html formatting. Or do I need to create a new field without the HTML formatting in this case?
Hi @SallyBickel ,
Currently, the search widget does not recognize the HTML formatting because each result is clickable, and there may be links or buttons in the fields and other problems.
We can handle the line breaks in the HTML formatting first. Please let me know if you have other similar cases so we can work together.
Thanks,
Shengdi
The other reason I imagine you see this, is that somewhere in the rendering chain the data coming in to those results is likely sanitized, and that means html inline is being escaped.
This is actually a common practice in software development, and useful to reduce potential injection attacks on systems.
I would almost advocate that limited html, going with something like what BBcode was for PHPBB Forums might be a better approach to enable this than trying to have HTML slinging everywhere in results this way.
One option I'd like to see would be to have an option to strip embedded HTML in the text chain (So from < to > just drop it from display)
Although, if you could define the display format for the Search Widget, like you do with a list widget, that might provide a lot more useful customization for a lot of potential experiences.