• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

Json_Encode not returning html even i try to encode JSON_HEX_QUOT | JSON_HEX_TAG

phpmysqlarraysjson


PHP Snippet 1:

echo json_encode(array("id"=>"1","data" => utf8_encode(strip_tags($row["post_content"]))));

PHP Snippet 2:

$jsonData = json_encode($string, JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT );


JSON_UNESCAPED_SLASHES  = Allows you to use "//" characters.
JSON_PRETTY_PRINT = Writes the json data legibly.

Related Snippets

Lumen - Postgresql setup - Composer

Symfony Make:Migration : The metadata storage is not up to date, please run the sync-metadata-storage command to fix this issue

Warning: sqlite_query() expects parameter 1 to be resource, string given

Sliders in Laravel

What will the best solution for this multiple optional filter?

How To Access A Column In M-M Relationship Table In Laravel

How to remove from a multidimensional array all duplicate elements including the original?

Magento Installation SQLSTATE[HY000] [2002] No such file or directory error

image source not readable

Add a custom text for a particular product on specific email notification in Woocommerce

Why does codeigniter & Linux server throws unserialize() session data error when user tries to login

"There is no active transaction" when refreshing database in Laravel 8.0 test

Using Associative arrays

disable two buttons after clicking another button

how to validate form data in codeigniter 4

About Contact Privacy policy Terms and conditions