It appears that you are using AdBlocking software. The cost of running this website is covered by advertisements. If you like it please feel free to a small amount of money to secure the future of this website.





Function F_substrHTML

Return a substring of XHTML code while making sure no html tags are chopped. It also prevents chopping while a tag is still open. this function is based on a public-domain script posted on by fox@conskript.server and

Package: com\tecnick\tcexam\shared
Author: Nicola Asuni
Located at shared/code/tce_functions_tcecode.php
Parameters summary
$htmltext (string)
$min_length = 100 (default=100) the approximate length you want the concatenated text to be
$offset_length = 20 (default=20) the max variation in how long the text can be

© 2004-2022 – Nicola Asuni - - All rights reserved.
about - disclaimer - privacy