summaryrefslogtreecommitdiff
path: root/ext/erb/escape/escape.c
AgeCommit message (Collapse)Author
2025-10-13[ruby/erb] html_escape: refactor redundant ifSharon Rosner
(https://github.com/ruby/erb/pull/88) https://github.com/ruby/erb/commit/c231ced3f4
2025-10-12[ruby/erb] Fix integer overflowNobuyoshi Nakada
Fix https://github.com/ruby/erb/pull/87 https://github.com/ruby/erb/commit/75764f022b
2025-10-11[ruby/erb] html_escape: Avoid buffer allocation for strings with noSharon Rosner
escapable character (https://github.com/ruby/erb/pull/87) This change improves reduces allocations and makes `html_escape` ~35% faster in a benchmark with escaped strings taken from the `test_html_escape` test in `test/test_erb.rb`. - Perform buffer allocation on first instance of escapable character. - Instead of copying characters one at a time, copy unescaped segments using `memcpy`. https://github.com/ruby/erb/commit/aa482890fe
2025-07-15[ruby/erb] Declare escape functions as Ractor-safeJohn Hawthorn
(https://github.com/ruby/erb/pull/63) https://github.com/ruby/erb/commit/fdd45c0d89
2025-05-12[ruby/erb] [DOC] Make documentation 100%Nobuyoshi Nakada
https://github.com/ruby/erb/commit/9152ce8db4
2022-11-26[ruby/erb] Define ERB::Escape moduleTakashi Kokubun
(https://github.com/ruby/erb/pull/38) Close #32
2022-11-25[ruby/erb] Keep ERB::Util#html_escape privateTakashi Kokubun
ERB::Util.html_escape has been public, but ERB::Util#html_escape had been private. https://github.com/ruby/erb/commit/e62210bf56
2022-11-24[ruby/erb] Rename erb.so to erb/escape.soTakashi Kokubun
(https://github.com/ruby/erb/pull/35) https://github.com/ruby/erb/commit/1280046952