Thanks for your suggestion.
I have solved the custom text problem by changing the field type to text in the database table mdl_certificate.
Custom certificate (plugin)
Teacher name and Custom Text not print correctly
This discussion has been locked because a year has elapsed since the last post. Please start a new discussion topic.