删除ASCII图稿

I'm working on a plugin that allows a client to copy / past raw HTML from a source and publish but with certain elements removed / replaced.

I've tried variations of find / replace i.e. $text = str_replace('', '', $text); without luck.

I have it doing everything EXCEPT replacing the ascii artwork which looks as so:

                                         ``
                                       `;;;;`
                                      ;;;;;;;;
                                    ;;;;;;;;;;;;
                                  :;;;;;;;;;;;;;;:
                                :;;;;;;;;;;;;;;;;;;:
                              :;;;;;;;;;;;;;;;;;;;;;;:
                            ,;;;;;;;;;;;;;;;;;;;;;;;;;;,
                          ,;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;,
                        .;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;.
                      .;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;.
                    `;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;`
                  `;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;`
                 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
                 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
                  .;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;.
                    ,;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;,
                      ,;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;,
                        :;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:
                          :;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:
                            :;;;;;;;;;;;;;;;;;;;;;;;;;;:
                 .;;:         ;;;;;;;;;;;;;;;;;;;;;;;;         :;;.
               .;;;;;;,        `;;;;;;;;;;;;;;;;;;;;         ,;;;;;;.
             `;;;;;;;;;;,        `;;;;;;;;;;;;;;;;`        ,;;;;;;;;;;`
           `;;;;;;;;;;;;;;.        `;;;;;;;;;;;;`        .;;;;;;;;;;;;;;`
          ;;;;;;;;;;;;;;;;;;`        .;;;;;;;;.        `;;;;;;;;;;;;;;;;;;
          ;;;;;;;;;;;;;;;;;;;;`        .;;;;.        `;;;;;;;;;;;;;;;;;;;;
           `;;;;;;;;;;;;;;;;;;;;`        ,,        `;;;;;;;;;;;;;;;;;;;;`
             `;;;;;;;;;;;;;;;;;;;;                ;;;;;;;;;;;;;;;;;;;;`
               `;;;;;;;;;;;;;;;;;;;;            ;;;;;;;;;;;;;;;;;;;;`
                 .;;;;;;;;;;;;;;;;;;;:        :;;;;;;;;;;;;;;;;;;;.
                   .;;;;;;;;;;;;;;;;;;;:    :;;;;;;;;;;;;;;;;;;;.
                     ,;;;;;;;;;;;;;;;;;;;::;;;;;;;;;;;;;;;;;;;,
           ,;;         ,;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;,         ;;,
         .;;;;;;         :;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:         ;;;;;;.
       `;;;;;;;;;:         :;;;;;;;;;;;;;;;;;;;;;;;;;;;;:         :;;;;;;;;;`
     `;;;;;;;;;;;;;:         :;;;;;;;;;;;;;;;;;;;;;;;;:         :;;;;;;;;;;;;;`
   `;;;;;;;;;;;;;;;;;:         ;;;;;;;;;;;;;;;;;;;;;;         :;;;;;;;;;;;;;;;;;`
  .;;;;;;;;;;;;;;;;;;;;,        `;;;;;;;;;;;;;;;;;;`        ,;;;;;;;;;;;;;;;;;;;;.
   .;;;;;;;;;;;;;;;;;;;;;.        `;;;;;;;;;;;;;;`        .;;;;;;;;;;;;;;;;;;;;;.
     ,;;;;;;;;;;;;;;;;;;;;;.        `;;;;;;;;;;`        .;;;;;;;;;;;;;;;;;;;;;,
       ,;;;;;;;;;;;;;;;;;;;;;`        .;;;;;;.        `;;;;;;;;;;;;;;;;;;;;;,
         :;;;;;;;;;;;;;;;;;;;;;`        .;;.        `;;;;;;;;;;;;;;;;;;;;;:
           :;;;;;;;;;;;;;;;;;;;;;`                `;;;;;;;;;;;;;;;;;;;;;:
             :;;;;;;;;;;;;;;;;;;;;;              ;;;;;;;;;;;;;;;;;;;;;:
               ;;;;;;;;;;;;;;;;;;;;;;          ;;;;;;;;;;;;;;;;;;;;;;
                 ;;;;;;;;;;;;;;;;;;;;;:      :;;;;;;;;;;;;;;;;;;;;;
                  `;;;;;;;;;;;;;;;;;;;;;:  :;;;;;;;;;;;;;;;;;;;;;`
                    `;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;`
                      .;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;.
                        .;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;.
                          ,;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;,
                            ,;;;;;;;;;;;;;;;;;;;;;;;;;;,
                              :;;;;;;;;;;;;;;;;;;;;;;:
                                :;;;;;;;;;;;;;;;;;;:
                                  :;;;;;;;;;;;;;;:
                                    ;;;;;;;;;;;;
                                      ;;;;;;;;
                                       `;;;;`
                                         ``

How can I remove ascii artwork in the head of an html doc?

I'm not sure exactly why previous syntax didn't work... There are only two things that are different than attempts prior...

  1. Slept on it.
  2. Moved my keys to an include file.

Once these were in place I found success. I'm not sure that it's an answer exactly, but here's the exact output.

$ascii_artwork      =   '                ``
                                       `;;;;`
                                      ;;;;;;;;
                                    ;;;;;;;;;;;;
                                  :;;;;;;;;;;;;;;:
                                :;;;;;;;;;;;;;;;;;;:
                              :;;;;;;;;;;;;;;;;;;;;;;:
                            ,;;;;;;;;;;;;;;;;;;;;;;;;;;,
                          ,;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;,
                        .;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;.
                      .;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;.
                    `;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;`
                  `;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;`
                 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
                 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
                  .;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;.
                    ,;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;,
                      ,;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;,
                        :;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:
                          :;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:
                            :;;;;;;;;;;;;;;;;;;;;;;;;;;:
                 .;;:         ;;;;;;;;;;;;;;;;;;;;;;;;         :;;.
               .;;;;;;,        `;;;;;;;;;;;;;;;;;;;;         ,;;;;;;.
             `;;;;;;;;;;,        `;;;;;;;;;;;;;;;;`        ,;;;;;;;;;;`
           `;;;;;;;;;;;;;;.        `;;;;;;;;;;;;`        .;;;;;;;;;;;;;;`
          ;;;;;;;;;;;;;;;;;;`        .;;;;;;;;.        `;;;;;;;;;;;;;;;;;;
          ;;;;;;;;;;;;;;;;;;;;`        .;;;;.        `;;;;;;;;;;;;;;;;;;;;
           `;;;;;;;;;;;;;;;;;;;;`        ,,        `;;;;;;;;;;;;;;;;;;;;`
             `;;;;;;;;;;;;;;;;;;;;                ;;;;;;;;;;;;;;;;;;;;`
               `;;;;;;;;;;;;;;;;;;;;            ;;;;;;;;;;;;;;;;;;;;`
                 .;;;;;;;;;;;;;;;;;;;:        :;;;;;;;;;;;;;;;;;;;.
                   .;;;;;;;;;;;;;;;;;;;:    :;;;;;;;;;;;;;;;;;;;.
                     ,;;;;;;;;;;;;;;;;;;;::;;;;;;;;;;;;;;;;;;;,
           ,;;         ,;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;,         ;;,
         .;;;;;;         :;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:         ;;;;;;.
       `;;;;;;;;;:         :;;;;;;;;;;;;;;;;;;;;;;;;;;;;:         :;;;;;;;;;`
     `;;;;;;;;;;;;;:         :;;;;;;;;;;;;;;;;;;;;;;;;:         :;;;;;;;;;;;;;`
   `;;;;;;;;;;;;;;;;;:         ;;;;;;;;;;;;;;;;;;;;;;         :;;;;;;;;;;;;;;;;;`
  .;;;;;;;;;;;;;;;;;;;;,        `;;;;;;;;;;;;;;;;;;`        ,;;;;;;;;;;;;;;;;;;;;.
   .;;;;;;;;;;;;;;;;;;;;;.        `;;;;;;;;;;;;;;`        .;;;;;;;;;;;;;;;;;;;;;.
     ,;;;;;;;;;;;;;;;;;;;;;.        `;;;;;;;;;;`        .;;;;;;;;;;;;;;;;;;;;;,
       ,;;;;;;;;;;;;;;;;;;;;;`        .;;;;;;.        `;;;;;;;;;;;;;;;;;;;;;,
         :;;;;;;;;;;;;;;;;;;;;;`        .;;.        `;;;;;;;;;;;;;;;;;;;;;:
           :;;;;;;;;;;;;;;;;;;;;;`                `;;;;;;;;;;;;;;;;;;;;;:
             :;;;;;;;;;;;;;;;;;;;;;              ;;;;;;;;;;;;;;;;;;;;;:
               ;;;;;;;;;;;;;;;;;;;;;;          ;;;;;;;;;;;;;;;;;;;;;;
                 ;;;;;;;;;;;;;;;;;;;;;:      :;;;;;;;;;;;;;;;;;;;;;
                  `;;;;;;;;;;;;;;;;;;;;;:  :;;;;;;;;;;;;;;;;;;;;;`
                    `;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;`
                      .;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;.
                        .;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;.
                          ,;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;,
                            ,;;;;;;;;;;;;;;;;;;;;;;;;;;,
                              :;;;;;;;;;;;;;;;;;;;;;;:
                                :;;;;;;;;;;;;;;;;;;:
                                  :;;;;;;;;;;;;;;:
                                    ;;;;;;;;;;;;
                                      ;;;;;;;;
                                       `;;;;`
                                         ``';
$ascii_artwork      =>      'FOOBAR',