Common filter for general content for getters
@param string|null $content
@param bool $escape
@return string|null
491886
public static function filterContent(?string $content, bool $escape, bool $nl2br = false): ?string
    {
        return $escape ? Html::escape($content, $nl2br) : $content;
    }
186592
public function handle(?string $content = null): string
    {
        return trim((string) preg_replace('/\s+/', ' ', $this->ipsum));
    }
1180348
public static function escapeAndMarkdownLight(?string $content): string
    {
        return $content ? C::getMarkdown()->textLight(Html::escape($content)) : (string) $content;
    }
148992
public static String escapeXml(String content, TestContext context) {
        return new EscapeXmlFunction().execute(Collections.singletonList(content), context);
    }
731593
public static function detectByContent($content)
    {
        if ( ! class_exists('finfo') || ! is_string($content)) {
            return null;
        }
        try {
            $finfo = new finfo(FILEINFO_MIME_TYPE);

            return $finfo->buffer($content) ?: null;
        // @codeCoverageIgnoreStart
        } catch( ErrorException $e ) {
            // This is caused by an array to string conversion error.
        }
    }
1234063
public function renderContainer($content = null)
    {
        if ($this->UseContainer) {
            
            return sprintf(
                "<div class=\"%s\">\n<div class=\"%s\">\n%s</div>\n</div>\n",
                $this->getContainerClass(),
                $this->getHTMLClass(),
                $content
            );
            
        }
        
        return $content;
    }
41603
protected function getHtml( $content )
	{
		$site = Route::input( 'site', Input::get( 'site', 'default' ) );
		return View::make( 'shop::jqadm.index', array( 'content' => $content, 'site' => $site ) );
	}
1235129
public static function filterMarkdownContent(?string $content, bool $compute, bool $fullMarkdown = false): ?string
    {
        return $compute 
                ? ($fullMarkdown
                    ? self::escapeAndMarkdown($content)
                    : self::escapeAndMarkdownLight($content)
                ) 
                : $content;
    }
895561
public function WhereIn($Field, $Values, $Escape = TRUE) {
      return $this->_WhereIn($Field, $Values, 'in', $Escape);
   }
1242254
public static function escape($content, bool $nl2br = false): string
    {
        $escaped = htmlspecialchars((string) $content);
        return $nl2br ? nl2br($escaped) : $escaped;
    }
1156266
private static Optional<UberData> extractContent(@Nullable Object content) {

		return Optional.ofNullable(content) //
				.filter(it -> !RESOURCE_TYPES.contains(it.getClass())) //
				.map(it -> new UberData() //
						.withName(StringUtils.uncapitalize(it.getClass().getSimpleName())) //
						.withData(extractProperties(it)));
	}
1020561
public static function findExternalLinks($content)
    {
        $matches = null;
        preg_match_all('/(?:href|src)=\"([^\"]+)/', $content, $matches);

        if (empty($matches[1])) {
            return [];
        }

        return $matches[1];
    }
822932
protected function element($tag, $contents, $attr = array(), $escape = true)
    {
        return $this->start($tag, $attr) .
            ($escape ? $this->escape($contents) : $contents) .
            $this->end($tag);
    }
161985
public function filter($content, $search, $type)
    {
        switch ($type) {
            case 'in':
                return (strpos($content, $search) !== false);
                break;
            default:
                return ($content == $search);
        }
    }
1327049
public static function filterIEFilters($content, $callback)
    {
        $pattern = static::REGEX_IE_FILTERS;

        return static::filterCommentless($content, function ($part) use (& $callback, $pattern) {
            return preg_replace_callback($pattern, $callback, $part);
        });
    }
593522
public function contentTag($name, $content, array $options = array(), $escape = false)
    {
        if ($content instanceof \Closure) {
            ob_start();
            $ret     = $content();
            $content = ob_get_clean();
            if ($ret !== null) {
                $content = $ret;
            }
        }
        return $this->contentTagString($name, $content, $options, $escape);
    }
197510
protected function unpack($content)
    {
        if ( !is_array($content) ) return null;

        if ( $content['ttl'] > 0 && time() >= $content['time'] + $content['ttl'] ) {
            $this->remove($content['key']);

            return null;
        }

        return $content['value'];
    }