How to remove html tags form response json laravel?

QuestionsCategory: QuestionsHow to remove html tags form response json laravel?
devil asked 3 weeks 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

1 Answers
Ajay Malhotra answered 3 weeks 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 3 weeks ago

Thank you, problem solved

Your Answer

6 + 3 =

Positive SSL