I am using WordPress JSON API plugin to get my posts as json. I am using that data for my AngularJS project. How to remove characters and p tags from content part of post that I get via JSON api.
<p> Lorem ipsum text “times” </p>
So I can on my page just show:
Lorem ipsum text "times"
I had the same problem but then realized that I was appending the content as textNode. After I set it as innerHTML it worked.
So, my wrong code was:
Correct code:
Hope it will help someone.