From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,NO_DNS_FOR_FROM, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from [192.168.1.5] (unknown [101.128.125.226]) by gnuweeb.org (Postfix) with ESMTPSA id EB5608060F; Wed, 3 Aug 2022 13:01:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1659531713; bh=lffoFIW3lElfEkf++VR5GGpLmWv3RAqky6PY8w7Cl3g=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=p7i1Msq5073AHefXobAn/xxukhUbn96KofGcEIygCAJbrmy4TYZ3Abkh44vnUT3lR aOy/DqqGma59SCG3/Z0cObzJz/etRuCPIS2I1WTk+GymHyhhhWvJuSIuvElojRGnlu PgkE0FzjHXuOuMGCfu1cPbhWWNeVkuh+rmhVVJahDrwMBzR5cGy11tBogXIcF2uK+p dyH5XsdhZDOn0jDNuACh9JahdxuNhBLhhYa6CslPiuOWyQGTHhxpejxyj7K10hfSXo nc5zT6X9oAGUCxQ0e62ohWcJPOLmm5Mrwyb5fVDl7m2haWajtaZH21puDQ58xGhldU T8Ob3NBG+Qa7g== Message-ID: <9093781c-20b8-d1de-450c-3cd1c842b93e@gnuweeb.org> Date: Wed, 3 Aug 2022 20:01:47 +0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.1.0 Subject: Re: [PATCH v1 2/2] Use html.escape() for fix_utf8_chars() Content-Language: en-US To: Ammar Faizi Cc: GNU/Weeb Mailing List , Alviro Iskandar Setiawan References: <20220803102718.1084-1-kiizuha@gnuweeb.org> <20220803102718.1084-3-kiizuha@gnuweeb.org> From: Muhammad Rizki In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: On 03/08/2022 19.49, Ammar Faizi wrote: > On 8/3/22 5:27 PM, Muhammad Rizki wrote: >> return html.escape(html.escape(text)) > > I doubt about this double escape. Just to clear my doubt. Did you test > this? Tested and work as my expected. > > I didn't, but you said previously that "<" is shown as ">" which is > totally garbage if that's the actual output. Rizki? > Yes, with double html.escape() it can replace the previous code (with replace())