Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-52257

Add user fullname() to remove HTML tags function.

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • 2.8.9, 2.9.3, 3.0
    • Language
    • None
    • MOODLE_28_STABLE, MOODLE_29_STABLE, MOODLE_30_STABLE

      I'm using $CFG->alternativefullnameformat = "<ruby><rb>lastname firstname</rb><rp><br />(</rp><rt>lastnamephonetic firstnamephonetic</rt><rp>)</rp></ruby>". This is very effective because teacher can understand student name's pronunciation easily. But some moodle funciton send email with tagged user name and it is very ugly. I suppose add fullname() to remove HTML tags function like below.

      function fullname($user, $override=false, $striptags=false){
      ...
          if ($striptags == true) {
              return strip_tags($displayname);
          }
          return $displayname;
      }
      

            Unassigned Unassigned
            papillon326 Mitsuru Udagawa
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.