Good time! Such a problem created an AYAX request that generates html code and returns it to the handler in the file. It looks like this

$res['par1'] = "<span id='valsbc".$getupst['id']."'>".$vals."</span>\10"; echo json_encode($res); 

further when js accepts the answer inserts in the right place it is so

 var stbar = html.par1; $("#allststusbuton").html(stbar); 

and the problem is that probably Jason eats the character \ and the ten after it because they are not displayed, and instead of them the symbol of the famous element (a square with small zeros and eight)

  • one
    give an example of lines - Grundy
  • <td> <span id = 'valsbc ". $ getupst [' id ']."'> ". $ vals." </ span> / \ 10 </ td> this from the handler on the output becomes https: // hkar.ru/O0OV - dantelol
  • one
    use quotes on the contrary, i.e. All in single, inside the identifier will already be in double '<span id="valsbc'.$getupst['id'].'">'.$vals.'</span>\10'; ............. or escape backslash "<span id='valsbc".$getupst['id']."'>".$vals."</span>\\10"; - Alexey Shimansky
  • @ AlekseyShimansky Executing \\ helped - list you) If you convert a comment in reply, I will close the question - dantelol
  • You can write the answer yourself. Simply, kmk, you need to write the reason for this behavior, open the topic, so to speak. And I'm too lazy)) - Alexey Shimansky

0