Public Ticket #3491224

HTML in store description

Closed
Comments
38 Tickets 14
Ryan Dwyer started the conversation 3 years ago on October 3, 2023 at 10:40pm

I have a suggestion. In the description area for stores, do you have plans to add html and linking capabilities? 

2,762
KingsPlugins replied 3 years ago on October 4, 2023 at 9:56am

Hi Ryan,

Is that the about us area here?

6702127812.png


Some tags can be used, but we are not planning to allow all tags and links. That is because it could create security issues. Likewise, allowing all HTML is a security liability, so we are currently only allowing specific tags such as h2 h3 strong.


Kind regards,

Stefan

38 Tickets 14
Ryan Dwyer replied 3 years ago on October 4, 2023 at 5:43pm

Yes, that is correct. I am curious about the security issues, because regular WordPress editors don't seem to have vulnerabilities. My concern is that most people don't know how to understand html and having it be in a visual editor format as well would assist vendors to more easily be able to use it, like embedding a YouTube video.

2,762
KingsPlugins replied 3 years ago on October 5, 2023 at 12:19pm

Generally, allowing HTML is considered a bad security practice - as developers we are encouraged to always escape HTML (and prevent it from being displayed). Places like the wordpress.org plugin repository will not accept plugins that do not do this.

For us, it is more work to prevent HTML from being displayed directly. It is very easy to allow all HTML, that is the default state.


It is different with visual editors, because editors do their own escaping / sanitization of the content, so they are considered safe. Yes, we could look to add an editor there in the future.

1
2,762
KingsPlugins replied 3 years ago on October 7, 2023 at 2:22pm

It is possible to change that address by adding this PHP code snippet to the site:

add_filter( 'woocommerce_email_from_address', 'change_reply_to_address', 1000, 2 ); 
function change_reply_to_address( $from_email, $wc_email ){
    if( 'marketking_new_announcement_email' === $wc_email->id ) {
        $from_email = '[email protected]';
    }
    return $from_email;
}

This would set both the "from" and "reply to" address to 

[email protected]

for the new announcement email.


38 Tickets 14
Ryan Dwyer replied 3 years ago on October 8, 2023 at 5:07am

Excellent. Thank you. Do you have code for changing the mobile view of the vendor store listings so that the text fits the screen without looking odd? I'm referring to the vendor names.

2,762
KingsPlugins replied 3 years ago on October 9, 2023 at 4:40am

Thank you,

I believe you can solve it by adding this CSS to your site:

@media screen and (max-width: 550px){
    td.marketking_vendor_name {
        font-size:14px;
        padding: 0px !important;
    }
}

It should then look similar to this on mobile:

5461535769.png


Sign In