* Sanitize caption used in compatibility Grid header Cherry pick of #11644tags/8.12.0.alpha1
@@ -38,6 +38,7 @@ import java.util.Set; | |||
import java.util.logging.Level; | |||
import java.util.logging.Logger; | |||
import org.jsoup.Jsoup; | |||
import org.jsoup.nodes.Attributes; | |||
import org.jsoup.nodes.Element; | |||
import org.jsoup.select.Elements; | |||
@@ -3473,6 +3474,7 @@ public class Grid extends AbstractComponent | |||
if (caption == null) { | |||
caption = ""; // Render null as empty | |||
} | |||
caption = Jsoup.parse(caption).text(); | |||
state.headerCaption = caption; | |||
HeaderRow row = grid.getHeader().getDefaultRow(); |