CssToInlineStyles
CssToInlineStyles copied to clipboard
FOR INFO:: Large CSS parsing
Hello guys.
For any of you trying to parse site with CSS large enough (1MB+) and not getting any results make sure you set ini_set('pcre.backtrack_limit', 1000000);
to higher value than 1mil.
I was parsing 3MB CSS and spent whole day debugging till found this is default config limiting preg_replace function.
Just letting you know.. Peace 👍