function OnlyNumber($_x68)
 {
     if (RTEUtil::IsNullOrEmpty($_x68)) {
         return true;
     }
     $_x15 = strlen($_x68);
     for ($_x12 = 0; $_x12 < $_x15; $_x12++) {
         $_x189 = ord(substr($_x68, $_x12, 1));
         if ($_x189 >= 48 && $_x189 < 58) {
             continue;
         }
         return false;
     }
     return true;
 }
Exemple #2
0
?>
            <br/>
		    <button type="submit">Submit</button>
        </div>
        <br/>
        <h3>HTML:</h3>
		<textarea style="height:120px;width:760px;"><?php 
if (@$_POST["Editor1"] != "") {
    echo htmlentities($rte->Text);
}
?>
</textarea>
		<br />
		<h3>PlainText:</h3>
		<textarea style="height:120px;width:760px;"><?php 
if (@$_POST["Editor1"] != "") {
    echo RTEUtil::ExtractPlainTextOutOfHtml($rte->Text);
}
?>
</textarea>
		<br />
		<h3>PlainText with line feeds:</h3>
		<textarea style="height:120px;width:760px;"><?php 
if (@$_POST["Editor1"] != "") {
    echo RTEUtil::ExtractPlainTextWithLinefeedsOutOfHtml($rte->Text);
}
?>
</textarea>
    </form>
</body>
</html>