I created a REST export using Views for taxonomy. But, I am unable to strip

tags from the description. Also, I am getting extra special characters for links.

[{"title":"featured 1","header":"learn how to contribute","text":"\u003Cp\u003ELorem ipsum dolor asit Lorem ipsum dolor asitLorem ipsum dolor asitLorem ipsum dolor asit\u003C\/p\u003E\r\n","link":"https:\/\/www.google.com"},{"title":"Featured 2","header":"learn how to contribute","text":null,"link":"https:\/\/www.facebook.com"}]

How can I strip HTML tags from the description and remove "//" from links in above JSON output?

I checked "Strip HTML tags" option for description. Please see image below.

enter image description here

  • 1
    Take a look at this it's a thread in drupal forum about how to Modify REST Export API response structure in Drupal 8 – berramou Dec 28 '18 at 17:01
  • I already made the output as raw output and I am getting the result with https:/\/\ – Kiran Dec 31 '18 at 6:53

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.