AFAIK appendHtmlConstant must be used just with constant strings which can fully determined at compile time. In this case javadoc is dynamic, isn't it?