提交 df80fc38 编写于 作者: K kohsuke

adding one more convenience method.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@11989 71c3de6d-444a-0410-be80-ed276b4c234a
上级 5140f54d
......@@ -83,6 +83,14 @@ public class MarkupText extends AbstractMarkupText {
addMarkup(0,length(),replace(startTag),replace(endTag));
}
/**
* Works like {@link #surroundWith(String, String)} except
* that the token replacement is not performed on parameters.
*/
public void surroundWithLiteral(String startTag, String endTag) {
addMarkup(0,length(),startTag,endTag);
}
/**
* Gets the start index of the captured group within {@link MarkupText#getText()}.
*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册