Prepara un string en PHP para ingresarlo como atributo en un XML

/ Published in: PHP
Save to your folder(s)

Copy this code and paste it in your HTML
  1. function xmlattribute($value){
  2. return str_replace('&','&',str_replace('"','"',$value));
  3. }

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.