> character converted to & gt ; in Custom CSS Code field

  • > character converted to & gt ; in Custom CSS Code field
    Viewing 7 posts - 1 through 7 (of 7 total)

  • Apprique
    Participant
    #1939

    The Custom CSS Code field under Advanced settings does not accept > characters, which are essential in CSS. It automatically converts those characters to their html equivalent: & gt ;


    Omar
    Keymaster
    #1952

    Hey apprique,

    You are correct the custom CSS panel doesn’t accept the > character. please let me know if you can’t find a way around that character and I will help.

    Edit: Will update you with this bug fix soon

    Regards


    Apprique
    Participant
    #1956

    Thanks! For now I have a work around.


    Apprique
    Participant
    #1957

    However, this issue also applies to the JavaScript field, and there it is not possible to work around!


    Apprique
    Participant
    #1958
    This reply has been marked as private.

    Omar
    Keymaster
    #1959

    Hey apprique,

    I have found the solution to this, added it to the update, but I already applied the fix on your installation:

    On file /functions.php
    I changed
    <?php echo cr_get_option('custom_css','') ?>
    <?php echo cr_get_option("google_code",''); ?>
    <?php echo cr_get_option("custom_js",''); ?>

    with
    <?php echo htmlspecialchars_decode(cr_get_option('custom_css','')) ?>
    <?php echo htmlspecialchars_decode(cr_get_option("google_code",'')); ?>
    <?php echo htmlspecialchars_decode(cr_get_option("custom_js",'')); ?&gt
    ;

    on lines 1576 and 1584 – 1585

    Also on file creiden-framework/inc/options-interface.php
    Changed
    $output .= '<textarea id="' . esc_attr($value['id']) . '" class="of-input" name="' . esc_attr($option_name . '[' . $value['id'] . ']') . '" rows="' . $rows . '">' . esc_textarea($val) . '</textarea>
    With
    $output .= '<textarea id="' . esc_attr($value['id']) . '" class="of-input" name="' . esc_attr($option_name . '[' . $value['id'] . ']') . '" rows="' . $rows . '">' . $val . '</textarea>

    Sorry if this took some amount of time.
    Cheers.


    Apprique
    Participant
    #1964

    Thanks, this works!

Viewing 7 posts - 1 through 7 (of 7 total)

The topic ‘> character converted to & gt ; in Custom CSS Code field’ is closed to new replies.