How to remove html tags form response json laravel?

QuestionsCategory: QuestionsHow to remove html tags form response json laravel?
devil asked 11 months ago

How to remove html tags form response json laravel?
Here is the json data images. I want to remove htmp tags and /r/n fron it:
 
json data

This site uses Akismet to reduce spam. Learn how your comment data is processed.

1 Answers
Ajay Malhotra answered 11 months ago

Here is the solution:
    $data2 = strip_tags($YourArrayData); // Remove Html
    $data2 = str_replace(“\\”,””,$data2); // Remove /n//r
 
    $data2 = json_decode($data2,true); // Format all data

devil replied 11 months ago

Thank you, problem solved

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Your Answer

19 + 1 =

Positive SSL