Plugin Directory

Changeset 3307520


Ignore:
Timestamp:
06/06/2025 12:26:28 PM (10 months ago)
Author:
virfice
Message:

fix: Special character rendering issue

Location:
emails-for-woocommerce/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • emails-for-woocommerce/trunk/readme.txt

    r3291381 r3307520  
    66Requires at least: WordPress 5.5
    77Tested up to: 6.8
    8 Stable tag: 1.1.4
     8Stable tag: 1.1.5
    99Requires PHP: 7.3
    1010License: GPLv2 or later
     
    103103
    104104== Changelog ==
     105= 1.1.5 =
     106* Fix: Special character rendering issue in the Order Address element
     107* Fix: All known minor issues resolved
     108
    105109= 1.1.4 =
    106110* New: Tax amount display in the WooCommerce order table.
  • emails-for-woocommerce/trunk/src/Includes/ShortCodes/DomShortCode.php

    r3291378 r3307520  
    186186
    187187                $value = str_replace(['<bdi>', '</bdi>'], '', $value);
    188                 libxml_use_internal_errors(true);
    189188                // Parse $value as HTML, wrapping it to ensure it's valid HTML
    190189                $doc = new \DOMDocument();
    191                 $doc->loadHTML('<div>' . $value . '</div>', LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD); // Wrap in <div> to avoid HTML parsing issues
     190                libxml_use_internal_errors(true);
     191                $doc->loadHTML('<?xml encoding="utf-8" ?><div>' . $value . '</div>', LIBXML_HTML_NOIMPLIED |
     192                    LIBXML_HTML_NODEFDTD); // Wrap in <div> to avoid HTML parsing issues
    192193
    193194                // Import each child node from $value into the main document
  • emails-for-woocommerce/trunk/src/WooEmailPreview/WooEmailPreview.php

    r3249220 r3307520  
    253253        $doc = new DOMDocument();
    254254        // Suppress errors due to invalid HTML, if any
    255         @$doc->loadHTML($html);
     255        @$doc->loadHTML('<?xml encoding="utf-8" ?>' . $html, LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD);
    256256
    257257        $styles = '';
  • emails-for-woocommerce/trunk/virfice.php

    r3291378 r3307520  
    77Author: Virfice
    88Author URI: https://virfice.com/
    9 Version: 1.1.4
     9Version: 1.1.5
    1010License: GPL v2 or later
    1111License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    5252
    5353// Define plugin constants for easier reference
    54 define('VIRFICE_VERISION', '1.1.4'); // Plugin version
     54define('VIRFICE_VERISION', '1.1.5'); // Plugin version
    5555define('VIRFICE_DEBUG', false); // false in production
    5656define('VIRFICE_APP_NAME', 'Virfice'); // Plugin name
Note: See TracChangeset for help on using the changeset viewer.