You are here

function FrxReportGenerator::get_html in Forena Reports 7.3

Same name and namespace in other branches
  1. 6.2 FrxReportGenerator.inc \FrxReportGenerator::get_html()
  2. 7.2 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 137
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;
}