You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ocamldoc does not HTML-escape the left angle bracket (< → <) when emitting documentation for object types in some circumstances, resulting in invalid HTML.
For example both of these declarations exhibit the problem:
The problem doesn't seem to happen when generating html docs in a single shot, but these commands will demonstrate the problem if the above declarations are in foo.mli:
I don't see any difference between the html files generated directly with
ocamldoc foo.mli -html -colorize-code
and the one generated indirectly.
As far as I can see, the html backend only escapes < and > in the specialized path for the toplevel of a type declaration and not for generic type expressions.
This issue has been open one year with no activity. Consequently, it is being marked with the "stale" label. What this means is that the issue will be automatically closed in 30 days unless more comments are added or the "stale" label is removed. Comments that provide new information on the issue are especially welcome: is it still reproducible? did it appear in other contexts? how critical is it? etc.
ocamldoc does not HTML-escape the left angle bracket (
<
→<
) when emitting documentation for object types in some circumstances, resulting in invalid HTML.For example both of these declarations exhibit the problem:
The problem doesn't seem to happen when generating html docs in a single shot, but these commands will demonstrate the problem if the above declarations are in
foo.mli
:The text was updated successfully, but these errors were encountered: