+ Reply to Thread
Results 1 to 1 of 1

Thread: Text area problem in Description field

  1. #1

    Text area problem in Description field

    When a user enters text in description area, The script checks maximum length at block below.

    rlCommon.class.php

    Code:
    Only registered members can view the code.
    As you see, It checks text area length limit after using strip_tags function(which removes all HTML tags)

    Also based on CKEditor config, it counts characters except than HTML tags. OK, so far no problem.


    Now, when the script wants to save text area at block below.

    rlListings.class.php

    Code:
    Only registered members can view the code.
    It uses substr to truncate original text (contain HTML tags), based on limit defined for text area length.

    Obviously, it causes loosing some data from the end of text area, especially if you use nearly all length limit and also use some HTML tags.
    Last edited by Bahram Soltanirad; January 26, 2023 at 06:14 PM.

+ Reply to Thread