# Html element whitelisting in plugin not taking effect server side

**URL:** <https://meta.discourse.org/t/html-element-whitelisting-in-plugin-not-taking-effect-server-side/66175>\
**Category:** Product Support\
**Created:** [July 14, 2017, 4:39am UTC](https://meta.discourse.org/t/html-element-whitelisting-in-plugin-not-taking-effect-server-side/66175 "2017-07-14T04:39:43Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Benjamin\_Mosior](https://avatars.discourse-cdn.com/v4/letter/b/59ef9b/32.png) [@Benjamin\_Mosior](https://meta.discourse.org/u/Benjamin_Mosior)\
**Post date:** [July 14, 2017, 3:27pm UTC](https://meta.discourse.org/t/html-element-whitelisting-in-plugin-not-taking-effect-server-side/66175/4 "2017-07-14T15:27:51Z")

</div>

Alright, I’m confounded. Must have been some sort of caching issue. The only change I introduced was rebooting the Vagrant box.

 ![](https://global.discourse-cdn.com/meta/original/3X/c/e/ce4d3ec0d93218786da7cefc77ce35cbf6b47de8.png)

The spec passes, and highlighting takes effect like I’d expect.

```plaintext
require 'rails_helper'

describe PrettyText do

  context 'markdown it' do
    before do
      SiteSetting.enable_experimental_markdown_it = true
    end

    it 'can properly bake highlights' do
      md = <<~MD
        This is a <mark>highlighted phrase</mark>.
      MD

      html = <<~HTML
        <p>This is a <mark>highlighted phrase</mark>.</p>
      HTML
      cooked = PrettyText.cook(md)
      expect(cooked).to eq(html.strip)
    end
  end
end

```

Thanks for pushing me in the right direction!

Just in case anyone would like to take a look at the source for their own plugin work, here it is:

> **[fortelabs / discourse-progressive-summarization · GitLab](https://gitlab.com/fortelabs/discourse-progressive-summarization)**
>
> A Discourse plugin to enable the use of progressive summarization techniques.

---

_[View the full topic](https://meta.discourse.org/t/html-element-whitelisting-in-plugin-not-taking-effect-server-side/66175)._
