ezyang / htmlpurifier

Standards compliant HTML filter written in PHP
http://htmlpurifier.org
GNU Lesser General Public License v2.1
3.02k stars 323 forks source link

Getting Error: Request exceeds maximum allowed text size of 50 KB #380

Open nishantsoniee opened 11 months ago

nishantsoniee commented 11 months ago

I have a huge text around 2.9 MB, I am passing this data to purify() FUNCTION, which is present in the HTMLPurifier CLASS.

I am getting this error -> Request exceeds maximum allowed text size of 50 KB.

Is it possible to purify this large data around 2.9 MB using this library ?

Please let me know if there is another way to do this.

Thanks in advance :)

bytestream commented 11 months ago

That's not a limit imposed by this library.

nishantsoniee commented 11 months ago

Screenshot from 2023-07-18 13-08-45

please check this screenshot. I am also getting the same issue on my production server.

@ezyang - Could you please look into it