3
* FCKeditor - The text editor for internet
4
* Copyright (C) 2003-2005 Frederico Caldeira Knabben
6
* Licensed under the terms of the GNU Lesser General Public License:
7
* http://www.opensource.org/licenses/lgpl-license.php
9
* For further information visit:
10
* http://www.fckeditor.net/
12
* "Support Open Source software. What about a donation today?"
15
* This is the File Manager Connector for ASP.
18
* Frederico Caldeira Knabben (fredck@fckeditor.net)
21
function RemoveFromStart( $sourceString, $charToRemove )
23
$sPattern = '|^' . $charToRemove . '+|' ;
24
return preg_replace( $sPattern, '', $sourceString ) ;
27
function RemoveFromEnd( $sourceString, $charToRemove )
29
$sPattern = '|' . $charToRemove . '+$|' ;
30
return preg_replace( $sPattern, '', $sourceString ) ;
33
function ConvertToXmlAttribute( $value )
35
return utf8_encode( htmlspecialchars( $value ) ) ;
b'\\ No newline at end of file'