I use the Smart Search of Joomla 2.5. So I added it and made an Index etc.
It works but it also shows some HTML-Code of the articles within results. I don't want that a User can see that.
How can I avoid this?
Here a Screenshot as an example:
Joomla Stack Exchange is a question and answer site for Joomla! administrators, users, developers and designers. It only takes a minute to sign up.
Sign up to join this communityI use the Smart Search of Joomla 2.5. So I added it and made an Index etc.
It works but it also shows some HTML-Code of the articles within results. I don't want that a User can see that.
How can I avoid this?
Here a Screenshot as an example:
It looks like your articles contains additional HTML code that has a "
, >
or <
in the wrong place. If you copied your content from Word (or another text editor), or made changes to your html code, you'd get results like this. The mso-
prefixes strongly suggest this code comes from some Microsoft Office application, which I would guess means Word.
Here's an example. If your HTML code looks like this:
...it is ensured that<span>style="font-size:9.0pt;font-familiy:Symbol:mso-fareast-font:Symbol;mso-bidi-font-family:Symbol"> the parts can indeed...
It would produce a result similar to your second example.
I recommend you open the articles in question, and if you're using the default TinyMCE editor, look for the < > button in the toolbar, or press Toggle Editor below the text window. This will display your HTML code.
It's a common problem that this kind of inline styling is added when copying from Word, thus overriding your template's CSS styles. You can paste as pure text using Ctrl + Shift + V, or paste to Notepad first and then copy-paste to Joomla.