From d27e2447aba193ae524698c2ba91a0c36914b806 Mon Sep 17 00:00:00 2001 From: Joel Drapper Date: Fri, 6 Sep 2024 22:17:55 +0100 Subject: [PATCH] Safe values (#772) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove `Phlex::SGML#unsafe_raw` - Add `Phlex::SGML#safe` which creates a `Phlex::SGML::SafeValue` - Add `Phlex::SGML::SafeObject` a generic interface for safe objects, which `Phlex::SGML::SafeValue` implements - Add `Phlex::SGML#raw`, which takes a SafeObject - Update `__attributes__` to allow the use of unsafe attribute names when the values are SafeObjects. Example ```ruby def view_template raw 🦺 "