Skip to content

The <> in generics in default arguments aren't escaped (invalid HTML generated) #1527

@Hixie

Description

@Hixie

For example, the MaterialApp docs have markup like this:

<span class="parameter" id="-param-routes">
  <span class="type-annotation">
    <a href="dart-core/Map-class.html">Map</a>&lt;<a href="dart-core/String-class.html">String</a>, <a href="widgets/WidgetBuilder.html">WidgetBuilder</a>&gt;
  </span>
  <span class="parameter-name">routes</span>:
  <span class="default-value">const <String, WidgetBuilder> {}</span>

Notice the last line has invalid HTML.

Metadata

Metadata

Assignees

Labels

P2A bug or feature request we're likely to work oncustomer-flutterIssues originating from important to Fluttertype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions