You are here

function forena_get_html in Forena Reports 7

Same name and namespace in other branches
  1. 8 forena.common.inc \forena_get_html()
  2. 6.2 forena.common.inc \forena_get_html()
  3. 6 forena.common.inc \forena_get_html()
  4. 7.5 forena.common.inc \forena_get_html()
  5. 7.2 forena.common.inc \forena_get_html()
  6. 7.3 forena.common.inc \forena_get_html()
  7. 7.4 forena.common.inc \forena_get_html()

Accepts the name of the html tag, and the string the tag is in.

Returns the string within the html tag name

File

./forena.common.inc, line 432
Common functions used throughout the project but loaded in this file to keep the module file lean.

Code

function forena_get_html($tag, $r_text) {
  $open = strpos($r_text, $tag);
  $close = strpos($r_text, '>', $open);
  $next = strpos($r_text, '<', $close + 1);
  $str = substr($r_text, $close + 1, $next - ($close + 1));
  return $str;
}