Skip to main content

remove

Function remove 

Source
pub fn remove(html: &[u8]) -> Result<Vec<u8>, Error>
Expand description

Remove every C2PA manifest element from the document.

A document that carries none is returned unchanged: removing nothing is not an error. embed adds no bytes outside the element, so removal is its exact inverse: remove(embed(d, s)) == d.