You are here

function FrxReportGenerator::get_html in Forena Reports 6.2

Same name and namespace in other branches
  1. 7.2 FrxReportGenerator.inc \FrxReportGenerator::get_html()
  2. 7.3 FrxReportGenerator.inc \FrxReportGenerator::get_html()
  3. 7.4 FrxReportGenerator.inc \FrxReportGenerator::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

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

Class

FrxReportGenerator

Code

function 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;
}