[html] Remove todo tags
It is not feasible to use a single 'substr' in the functions
This commit is contained in:
parent
54800fcc8d
commit
66e82e46db
1 changed files with 0 additions and 4 deletions
|
@ -160,8 +160,6 @@ function defaultLinkTo($content, $server){
|
||||||
* @param string $end End delimiter, e.g. `<`
|
* @param string $end End delimiter, e.g. `<`
|
||||||
* @return string|bool Extracted string, e.g. `John Doe`, or false if the
|
* @return string|bool Extracted string, e.g. `John Doe`, or false if the
|
||||||
* delimiters were not found.
|
* delimiters were not found.
|
||||||
*
|
|
||||||
* @todo This function can possibly be simplified to use a single `substr` command.
|
|
||||||
*/
|
*/
|
||||||
function extractFromDelimiters($string, $start, $end) {
|
function extractFromDelimiters($string, $start, $end) {
|
||||||
if (strpos($string, $start) !== false) {
|
if (strpos($string, $start) !== false) {
|
||||||
|
@ -178,8 +176,6 @@ function extractFromDelimiters($string, $start, $end) {
|
||||||
* @param string $start Start delimiter, e.g. `<script`
|
* @param string $start Start delimiter, e.g. `<script`
|
||||||
* @param string $end End delimiter, e.g. `</script>`
|
* @param string $end End delimiter, e.g. `</script>`
|
||||||
* @return string Cleaned string, e.g. `foobar`
|
* @return string Cleaned string, e.g. `foobar`
|
||||||
*
|
|
||||||
* @todo This function can possibly be simplified to use a single `substr` command.
|
|
||||||
*/
|
*/
|
||||||
function stripWithDelimiters($string, $start, $end) {
|
function stripWithDelimiters($string, $start, $end) {
|
||||||
while(strpos($string, $start) !== false) {
|
while(strpos($string, $start) !== false) {
|
||||||
|
|
Loading…
Reference in a new issue