statickidz / php-google-translate-free

PHP class to use the Google Translator API for free.
GNU General Public License v3.0
271 stars 91 forks source link

Exclude html tags for translation #19

Closed Maadtin closed 3 years ago

Maadtin commented 6 years ago

is there anyway to do this? thanks!

mobinzk commented 6 years ago

You can use strip_tags php function before passing the characters to the translator. More info: http://php.net/manual/en/function.strip-tags.php