This is an automated email from the ASF dual-hosted git repository. joshtynjala pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
commit 8ff67d79effbd060a15c4596b4461deb0f522b32 Author: Josh Tynjala <[email protected]> AuthorDate: Thu Apr 17 15:55:19 2025 -0700 ASDoc: sanitize HTML for class description --- examples/royale/ASDoc/src/main/royale/ASDocMainView.mxml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/royale/ASDoc/src/main/royale/ASDocMainView.mxml b/examples/royale/ASDoc/src/main/royale/ASDocMainView.mxml index 5c35bf1bde..ffcd1b647a 100644 --- a/examples/royale/ASDoc/src/main/royale/ASDocMainView.mxml +++ b/examples/royale/ASDoc/src/main/royale/ASDocMainView.mxml @@ -32,6 +32,7 @@ limitations under the License. import org.apache.royale.events.DetailEvent; import org.apache.royale.html.PopUpList; import org.apache.royale.utils.PointUtils; + import org.apache.royale.utils.string.sanitizeHtml; private var packagesReady:Boolean = false; @@ -504,7 +505,7 @@ limitations under the License. <models:ListPresentationModel rowHeight="NaN"/> </js:beads> </js:DataContainer> - <js:MultilineLabel id="description" className="description" html="{ASDocModel(applicationModel).description}" width="100%"/> + <js:MultilineLabel id="description" className="description" html="{sanitizeHtml(ASDocModel(applicationModel).description)}" width="100%"/> <js:Label text="Public Properties" className="sectionLabel"/> <js:List className="summaryList" id="publicPropertyList" dataProvider="{ASDocModel(applicationModel).publicProperties}" itemRenderer="SummaryRenderer" width="100%">
