if (javaDoc) {
// this is in a javadoc, so we can assume that XML content is escaped, we need to fix that
content = content.replaceAll("\\<", "<").replaceAll("\\>", ">").replaceAll("\\@", "@");
}
msg = subRenderer.render(content, new RenderContext());
} else {
msg = subRenderer.render(writer.getBuffer().toString(), new RenderContext(),
RenderMode.suppress(RenderMode.F_MACROS | RenderMode.F_HTMLESCAPE | RenderMode.F_LINEBREAKS | RenderMode.F_LINKS));
if (javaDoc) {
// @{link Writer} -> Writer
// @{link Foo#bar()} -> Foo.bar()