PHP function cryptx_encrypt not working like encryptx before
-
Hi Ralf
Two questions:
1:
I try to use the function cryptx_encrypt in php like this, with some options:{!! cryptx_encrypt($p->zusatz, ["alt_linktext" => "E-Mail", 'opt_linktext' => 1, "echo" => 0] ) !!}This basically works again since the latest update – thank you.
Except the html output of the function is with html-entities and therefore all html tags are visible on the website.I fixed this problem by adding html_entity_decode before the function:
{!! html_entity_decode(cryptx_encrypt($p->zusatz, ["alt_linktext" => "E-Mail", 'opt_linktext' => 1, "echo" => 0] )) !!}This is ok for me.
2:
Another problem is, that if the string ($p->zusatz) is only an e-mail address without any other text before, the output is just “E-Mail”, in this case the desired linktext, but without functionality …Thank you for any support
Jan
You must be logged in to reply to this topic.