Home Forums General Issues Escaping HTML – br tag Reply To: Escaping HTML – br tag

  • If you don’t need the <br> tags to display the address then change the format of the textarea to “No Formatting”. If you do need the breaks then you’ll need to do a string replace to remove them. Something like

    $address = str_replace('<br />', ', ', $address);

    I’d probably also make it a proper query value with

    $address = urlencode($address);