Convert inline tags into a string for outputting.

@param Tag tag The text tag to process
@param bool first Process first line of tag only
@return str The string representation of the elements doc tags
545201
public function _processInlineTags(&$tag, $first = FALSE)
    {
        $description = '';
        if (is_array($tag)) $tag = $tag[0];
        if (is_object($tag)) {
            if ($first) {
                $tags =& $tag->firstSentenceTags($this->_doclet);
            } else {
                $tags =& $tag->inlineTags($this->_doclet);
            }
            if ($tags) {
                foreach ($tags as $aTag) {
                    if ($aTag) {
                        $description .= $aTag->text($this->_doclet);
                    }
                }
            }

            return $this->_doclet->formatter->toFormattedText($description);
        }

        return NULL;
    }
356865
function (tag) {
                var
                    len = this._openedTags.length;
                if (len && this._openedTags[len - 1] === tag) {
                    this._openedTags.pop();
                    this._output("</" + tag + ">");
                } else {
                    this._openTag(tag);
                }
            }
1327295
public static String render(SimpleHTMLTag tag) {
        List<SimpleHTMLTag> tags = new ArrayList<>();
        tags.add(tag);

        HTMLRenderer renderer = new HTMLRenderer(tags);

        return renderer.render();
    }
373929
public String getTagHtml(Tag tag) {

        StringBuffer result = new StringBuffer(32);
        result.append('<');
        result.append(tag.getText());
        result.append('>');
        return result.toString();
    }
656336
public String getPattern(Tag tag) {
		final String pattern = this.rawPatterns.get(tag);
		if (pattern == null) {
			return tag.getDefaultPattern();
		}
		return pattern;
	}
727418
public static StringBuffer appendTextInsideTag(StringBuffer buffer, String text, String tag)
	{
		return appendTextInsideTag(buffer, text, tag, EMPTY_MAP);
	}
263829
private void printInlineTags(Tag[] tags, ClassDoc classDoc) {
        for (Tag tag : tags) {
            if ((tag instanceof SeeTag) && tag.name().equals("@link")) {
                SeeTag seeTag = (SeeTag) tag;
                boolean sameClass = seeTag.referencedClass() == classDoc;
                String fullClassName = seeTag.referencedClassName();
                String memberName = seeTag.referencedMemberName();

                String className = fullClassName.substring(fullClassName.lastIndexOf('.') + 1);
                List<String> nameParts = new ArrayList<>();
                if (!sameClass) {
                    nameParts.add(className);
                }
                if (memberName != null) {
                    nameParts.add(memberName);
                }
                String name = Strings.join(nameParts, ".");

                if (fullClassName.lastIndexOf('.') >= 0) {
                    String packageName = fullClassName.substring(0, fullClassName.lastIndexOf('.'));
                    String urlPrefix = "";
                    if (!sameClass && packageName.startsWith("com.qspin.") && !packageName.equals(
                          "com.qspin.qtaste.testapi.api")) {
                        String javaDocDir = packageName.startsWith("com.qspin.qtaste.") ? QTaste_JAVADOC_URL_PREFIX :
                              SUT_JAVADOC_URL_PREFIX;
                        urlPrefix = javaDocDir + packageName.replace('.', '/') + "/";
                    }
                    String url =
                          (sameClass ? "" : urlPrefix + className + ".html") + (memberName != null ? "#" + memberName : "");

                    mOut.print("<A HREF=\"" + url + "\">" + name + "</A>");
                } else {
                    mOut.print(name);
                }
            } else {
                mOut.print(tag.text());
            }
        }
    }
475709
protected function tag(&$tag, $simple = false) {
if ($simple)
$chars = '^@,:;{}\][>\(\) "\'';
else
$chars = '^@,;{}["\'';

$s = $this->seek();

$hasExpression = false;
$parts = array();
while ($this->tagBracket($parts, $hasExpression));

$oldWhite = $this->eatWhiteDefault;
$this->eatWhiteDefault = false;

while (true) {
if ($this->match('(['.$chars.'0-9]['.$chars.']*)', $m)) {
$parts[] = $m[1];
if ($simple) break;

while ($this->tagBracket($parts, $hasExpression));
continue;
}

if (isset($this->buffer[$this->count]) && $this->buffer[$this->count] == "@") {
if ($this->interpolation($interp)) {
$hasExpression = true;
$interp[2] = true; // don't unescape
$parts[] = $interp;
continue;
}

if ($this->literal("@")) {
$parts[] = "@";
continue;
}
}

if ($this->unit($unit)) { // for keyframes
$parts[] = $unit[1];
$parts[] = $unit[2];
continue;
}

break;
}

$this->eatWhiteDefault = $oldWhite;
if (!$parts) {
$this->seek($s);
return false;
}

if ($hasExpression) {
$tag = array("exp", array("string", "", $parts));
} else {
$tag = trim(implode($parts));
}

$this->whitespace();
return true;
}
1162771
public static String getTextInsideTag(String text, String tag, Map<String, String> attributes)
	{
		StringBuffer _buffer = new StringBuffer();
		Map<String, String> _attributes = (null != attributes) ? attributes : EMPTY_MAP;
		return doAppendTextInsideTag(_buffer, text, tag, _attributes).toString();
	}
113531
protected function _renderInlineTag($string)
    {
        $string = $this->engine->inlineParser->parse($string);
        // handling of carriage-returns inside paragraphs
        $string = (!$this->_firstLine) ? " $string" : $string;
        $this->_firstLine = false;
        return ($string);
    }
448333
public static String getTextInsideTag(String text, String tag)
	{
		return getTextInsideTag(text, tag, EMPTY_MAP);
	}
1098212
public function format(Tag $tag): string
    {
        return '@' . $tag->getName() . str_repeat(' ', $this->maxLen - strlen($tag->getName()) + 1) . (string) $tag;
    }
995426
public static boolean isSpecialTag(String tag) {
		return isHtml(tag) || isHead(tag) || isMeta(tag) || isLink(tag)
				|| isBody(tag);
	}
881507
public static function addTags($line,$tag) {
		$lineFinal = "<".$tag.">".preg_replace("/<[A-z0-9-_]{1,}>[^<]{1,}<\/[A-z0-9-_]{1,}>/","</".$tag.">$0<".$tag.">",$line)."</".$tag.">";
		return $lineFinal;
	}
329902
private static function processTag(BaseTag $tag)
    {
        $types = [];

        if (method_exists($tag, 'getType') && is_callable([$tag, 'getType'])) {
            if (($type = $tag->getType()) !== null) {
                $types[] = $type;
            }
        }

        if (method_exists($tag, 'getArguments') && is_callable([$tag, 'getArguments'])) {
            foreach ($tag->getArguments() as $param) {
                if (($type = $param['type'] ?? null) !== null) {
                    $types[] = $type;
                }
            }
        }

        return $types;
    }
994027
public static String getClosingTag(String tag)
	{
		StringBuffer _result = new StringBuffer();
		return doAppendClosingTag(_result, tag).toString();
	}
682624
protected function outputIgnoreTag(Tag $tag)
	{
		$tagPos = $tag->getPos();
		$tagLen = $tag->getLen();

		// Capture the text to ignore
		$ignoreText = substr($this->text, $tagPos, $tagLen);

		// Catch up with the tag's position then output the tag
		$this->outputText($tagPos, 0, false);
		$this->output .= '<i>' . htmlspecialchars($ignoreText, ENT_NOQUOTES, 'UTF-8') . '</i>';
		$this->isRich = true;

		// Move the cursor past this tag
		$this->pos = $tagPos + $tagLen;
	}