Fix trim strip_tags issue as per #1385

as discussed in #1385
Merge pull request #1392 from emanwebdev/patch-27

Fix trim strip_tags issue as per #1385