xml_convert error in long space and end content in javascript 4.5.4 |
in this case, code working
PHP Code: $rm_question = trim(preg_replace('/\s+/', ' ', xml_convert($cauhoi))); in javascript show: Code: learntips: '<p>Chọn <strong>đ&aacute;p &aacute;n 2</strong> trong mẹo nh&eacute;.</p> in this case, code dont work so middle space in the content and end content PHP Code: $rm_question = xml_convert($cauhoi))); Code: <p>Chọn <strong>đ&aacute;p &aacute;n 2</strong> trong mẹo nh&eacute;.</p> I don't know if function helper xml_convert will add trim and remove all spaces in the future
I don't know what is wrong.
(09-04-2024, 09:08 PM)kenjis Wrote: I don't know what is wrong.Currently xml_convert function is not wrong, but to improve the helper better, the dev can remove long spaces including the beginning and end of the content, which will be better for programmers. as above example code dont work if remove all long spaces in the content, it will work Code: <p>Chọn <strong>đ&aacute;p &aacute;n 2</strong> trong mẹo nh&eacute;.</p><p><u><strong>Mẹo h&agrave;nh vi sai bị nghi&ecirc;m cấm, kh&ocirc;ng được khi tham gia giao
I still don't know what is your issue. Can you describe the issue more clearly?
What is wrong in the current output? I think xml_convert() does not convert spaces. See https://codeigniter4.github.io/CodeIgnit...ml_convert |
Welcome Guest, Not a member yet? Register Sign In |