• Resolved Dang Ngoc Binh

    (@dangngocbinh)


    Hi Tutor LMS Support Team

    I got an bug when sharing course on social media. Description text show with html tag.

    I check code at tutor/classes/Courses.php on social_share_content function not remove html from description.

    Please to help me check and modify this.

    Thank you so much!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Dear @dangngocbinh 

    To resolve this issue, you can modify the social_share_content function as follows:

    public function social_share_content() { $description = wp_strip_all_tags( $this->post->post_excerpt ); // Remove HTML tags from the description // Generate the social share content $content = array( 'title' => $this->post->post_title, 'description' => $description, 'url' => get_permalink( $this->post->ID ), ); return apply_filters( 'tutor_social_share_content', $content ); }
    Thread Starter Dang Ngoc Binh

    (@dangngocbinh)

    Thank you @largbasket

    I already done.
    but why we don’t update to our plugin. So any body can update without has issues again?

    Dear @dangngocbinh

    We apologize for any inconvenience you experienced. It’s possible that the issue you encountered was specific to your setup or configuration, as it hasn’t been reported by other users. In order to provide you with a solution, we offered a custom workaround. It’s important to note that conflicts between different plugins, themes, or configurations can occur, leading to unexpected behavior. If you continue to experience any issues or have further questions, please don’t hesitate to reach out for assistance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Wrong display description on social media’ is closed to new replies.