Subversion Repositories oidplus

Rev

Rev 1116 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1116 Rev 1140
Line 29... Line 29...
29
         * @param string $html
29
         * @param string $html
30
         * @return void
30
         * @return void
31
         */
31
         */
32
        public function htmlPostprocess(string &$html) {
32
        public function htmlPostprocess(string &$html) {
33
                $html = preg_replace_callback(
33
                $html = preg_replace_callback(
34
                        '|<a\s([^>]*)href="mailto:([^"]+)"([^>]*)>([^<]*)</a>|ismU',
34
                        '|<a\s([^>]*)href="mailto:([^"]+)"([^>]*)>([^<]*)</a>|imU',
35
                        function ($treffer) {
35
                        function ($treffer) {
36
                                $email = $treffer[2];
36
                                $email = $treffer[2];
37
                                $text = $treffer[4];
37
                                $text = $treffer[4];
38
                                return OIDplus::mailUtils()->secureEmailAddress($email, $text, 1); // AntiSpam
38
                                return OIDplus::mailUtils()->secureEmailAddress($email, $text, 1); // AntiSpam
39
                        }, $html);
39
                        }, $html);