Parsedown::filterUnsafeUrlInAttribute( $Element, $attribute )
Description
Source
File: bp-help/vendors/parsedown/Parsedown.php
1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 | protected function filterUnsafeUrlInAttribute( array $Element , $attribute ) { foreach ( $this ->safeLinksWhitelist as $scheme ) { if (self::striAtStart( $Element [ 'attributes' ][ $attribute ], $scheme )) { return $Element ; } } $Element [ 'attributes' ][ $attribute ] = str_replace ( ':' , '%3A' , $Element [ 'attributes' ][ $attribute ]); return $Element ; } |
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.