Lines Matching refs:docContent
127 * @param string $docContent The document content
130 public static function deleteUselessElements(&$docContent, array $preventDeletetionStyles) { argument
133 $max = strlen ($docContent);
137 $start_open = strpos ($docContent, '<text:p', $pos);
141 $start_close = strpos ($docContent, '>', $start_open + $length_open);
145 $end = strpos ($docContent, '</text:p>', $start_close + 1);
152 $content = substr ($docContent, $start_close + 1, $end - ($start_close + 1));
156 $style_start = strpos ($docContent, '"', $start_open);
161 $style_end = strpos ($docContent, '"', $style_start+1);
166 $style_name = substr ($docContent, $style_start+1, $style_end - ($style_start+1));
171 $docContent = substr_replace($docContent, '', $start_open, $length);