Decoding html tags using json_decode() function

PouttyMayday

New Member
I am trying to decode a JSON string using json_decode() in PHP. Part of my JSON string has HTML tags in it. Eg. (For better view of the code go to http://gist.github.com/605906)\[code\]\[code\]$json = '{"productid" : "prod:a8f2d4ef-108e-5fbf-fa74-595ddc0c7950","memo" : "<div style=\"color: #000000; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; background-image: initial; background-repeat: initial; background-attachment: initial; background-color: #ffffff; background-position: initial initial; margin: 8px;\">WS1CI metered clack valve, 1\" for softener P/N: V1CIDME-03</div>"}';\[/code\]But I am getting NULL values, when I do\[code\]var_dump(json_decode($json));\[/code\]orvar_dump(json_decode($json, true));\[/code\]
 
Back
Top