Title: Highlighting shows HTML code
Last modified: June 28, 2020

---

# Highlighting shows HTML code

 *  Resolved [Spacetime](https://wordpress.org/support/users/spacetime/)
 * (@spacetime)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/highlighting-shows-html-code/)
 * Using [Prismatic](https://wordpress.org/plugins/prismatic/) plugin for syntax
   highlighting.
 * When the url contains `?highlight=` query to highlight search phrase the syntax
   highlighted code shows HTML code.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fhighlighting-shows-html-code%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Mikko Saari](https://wordpress.org/support/users/msaari/)
 * (@msaari)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/highlighting-shows-html-code/#post-13044836)
 * Add this to your theme functions.php:
 * `add_filter( 'relevanssi_entities_inside_pre', '__return_false' );`
 * This will prevent Relevanssi from touching code inside `pre` tags which is what
   Prismatic uses.
 *  Thread Starter [Spacetime](https://wordpress.org/support/users/spacetime/)
 * (@spacetime)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/highlighting-shows-html-code/#post-13044864)
 * Thanks, but it still shows (highlighted) HTML code.
 * [https://adinserter.pro/faq/how-to-dynamically-show-related-amazon-products?highlight=amp](https://adinserter.pro/faq/how-to-dynamically-show-related-amazon-products?highlight=amp)
 *  Plugin Author [Mikko Saari](https://wordpress.org/support/users/msaari/)
 * (@msaari)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/highlighting-shows-html-code/#post-13044877)
 * Try
 * `add_filter( 'relevanssi_entities_inside_code’, '__return_false' );`
 * instead. If it doesn’t work, disable the highlighting feature.
 *  Thread Starter [Spacetime](https://wordpress.org/support/users/spacetime/)
 * (@spacetime)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/highlighting-shows-html-code/#post-13044882)
 * Both filters together worked.
 * Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Highlighting shows HTML code’ is closed to new replies.

 * ![](https://ps.w.org/relevanssi/assets/icon-256x256.png?rev=2025044)
 * [Relevanssi - A Better Search](https://wordpress.org/plugins/relevanssi/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/relevanssi/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/relevanssi/)
 * [Active Topics](https://wordpress.org/support/plugin/relevanssi/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/relevanssi/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/relevanssi/reviews/)

## Tags

 * [html code](https://wordpress.org/support/topic-tag/html-code/)

 * 4 replies
 * 2 participants
 * Last reply from: [Spacetime](https://wordpress.org/support/users/spacetime/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/highlighting-shows-html-code/#post-13044882)
 * Status: resolved