#include "FuncStatus.h"
#include "InsetIterator.h"
#include "LyXFunc.h"
+#include "output_xhtml.h"
#include "ParIterator.h"
#include "sgml.h"
#include "Text.h"
InsetCommandParams p(REF_CODE, "ref");
p["reference"] = getParam("name");
cap::clearSelection();
- cap::copyInset(cur, new InsetRef(*cur.buffer(), p), getParam("name"));
+ cap::copyInset(cur, new InsetRef(buffer(), p), getParam("name"));
break;
}
}
-int InsetLabel::xhtml(odocstream & os, OutputParams const & /*runparams*/) const
+docstring InsetLabel::xhtml(odocstream & os, OutputParams const &) const
{
- // FIXME Does this need to be escaped?
- os << "<a name=\"" << getParam("name") << "\"></a>";
- return 0;
+ os << "<a name=\"" << html::htmlize(getParam("name")) << "\"></a>";
+ return docstring();
}
} // namespace lyx