php-ups-api icon indicating copy to clipboard operation
php-ups-api copied to clipboard

add htmlspecialchars to escape & characters to solve issue 374

Open Nemo64 opened this issue 2 years ago • 0 comments

This is not really a nice fix. It's just a search and replace for all createElement calls that adds htmlspecialchars everywhere

These were the patterns executed: createElement\(([^,()]+\,\s*)(\$([^,;()]+|\([^;()]*\))+)\) createElement($1($2) !== null ? htmlspecialchars($2) : null)

Nemo64 avatar Jun 22 '23 13:06 Nemo64