BBCodeLibrary::DoEmail( $bbcode, $action, $name, $default, $params, $content )
Description
Source
File: bp-forums/admin/parser.php
872 873 874 875 876 877 878 | function DoEmail( $bbcode , $action , $name , $default , $params , $content ) { if ( $action == BBCODE_CHECK) return true; $email = is_string ( $default ) ? $default : $bbcode ->UnHTMLEncode( strip_tags ( $content )); if ( $bbcode ->IsValidEmail( $email )) return '<a href="mailto:' . htmlspecialchars( $email ) . '" class="bbcode_email">' . $content . '</a>' ; else return htmlspecialchars( $params [ '_tag' ]) . $content . htmlspecialchars( $params [ '_endtag' ]); } |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.