I am calling a Js file frontend-script from one of the active plugins in my plugin, However code is running smoothly but when I run sniffer on my plugin, sniffer throws an error “All output should be run through an escaping function” found ‘file_get_contents’. Can anybody help me out?
I have tried:
echo ” . file_get_contents(WC_UBP_URL . ‘/assets/js/frontend-script.js’) . ”;
Its working fine, any better solution except this?