sandbox method

IFrame sandbox(
  1. List<String> accessList, {
  2. bool? removeIf,
})

Applies extra restrictions to the content in the frame. Read more...

Implementation

IFrame sandbox(List<String> accessList, {bool? removeIf}) {
  if (removeIf != true && node.attrs != null) {
    VirtualAttr attr = VirtualAttr('sandbox', _html.listToSpaces(accessList));
    node.attrs!.add(attr);
  }
  return this;
}