I am trying to delete the content of specific attribute within the HTML content while using sub_filter modul in nginx proxy.
This is an example of the attribute that I am trying to delete its content:
integrity="sha256-JcCQTfQJfXQCI9Pgu4C8DsPBm7t6k/3SvAXTFPsXuBk= sha512-l4H3xn9koLbrXcevxo6Hs0TnepFHVLGgQM9tUMgsYxLDsyfVzWen1sqgozMDp1hh7dF1aR3bhNTp+jjrEBTIIA=="
So far I've tried different variation of regular expresions which should work but actually don't work in nginx, for example this one:
sub_filter integrity=".*?" integrity="";
Is my approach wrong? How can I achieve this task in nginx?