Title: PHP function cryptx_encrypt not working like encryptx before
Last modified: January 14, 2026

---

# PHP function cryptx_encrypt not working like encryptx before

 *  [Fint Studio](https://wordpress.org/support/users/fint/)
 * (@fint)
 * [2 months, 4 weeks ago](https://wordpress.org/support/topic/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:
 *     ```wp-block-code
       {!! 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:
 *     ```wp-block-code
       {!!  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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-function-cryptx_encrypt-not-working-like-encryptx-before%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://s.w.org/plugins/geopattern-icon/cryptx.svg)
 * [CryptX](https://wordpress.org/plugins/cryptx/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cryptx/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cryptx/)
 * [Active Topics](https://wordpress.org/support/plugin/cryptx/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cryptx/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cryptx/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Fint Studio](https://wordpress.org/support/users/fint/)
 * Last activity: [2 months, 4 weeks ago](https://wordpress.org/support/topic/php-function-cryptx_encrypt-not-working-like-encryptx-before/)
 * Status: not resolved