Weird tag content: <pre id="RadEditorEncodedTag">PGVtYmVkIGhla.....

2 posts, 0 answers
  1. Jepoy
    Jepoy avatar
    14 posts
    Member since:
    Apr 2011

    Posted 01 Apr 2011 Link to this post

    Telerik Admin,

    Good Day. I know that this thread is very old however the issue I encountered is somewhat very much related to what was raised by some of the users specially with Midhun Kumar Allu in:

    Given Scenario:
    1. We have MOSS web page(s) that contains <embed > tags.
    Like if I view that page and view source of that I can see the following tags:

    <embed height="240" width="320" allowscriptaccess="always" allowfullscreen="true" wmode="transparent" src=" just omit other characters...." type="application/x-shockwave-flash"></embed>

    2. And in a separate app. when we extract the content of this web page through moss webservice. everything is fine except for the <embed> tags. I am not sure but all info in <embed> tags will become something like this:
    <pre id="RadEditorEncodedTag">PGVtYmVkIGhlaWdodD0iMjQwIiB...............................

    Note: We are using the updated version of MOSS.

    * Like I said my question is somewhat related to Midhun Kumar Allu except that mine is via Moss Content Extract. Can you please help me what configuration that I need to consider? What am I forgetting to include? How do we decode (or decrypt if applicable) that?

    Really appreciate any quick feedback...
    Regardz, -jepoy
  2. Jepoy
    Jepoy avatar
    14 posts
    Member since:
    Apr 2011

    Posted 04 Apr 2011 Link to this post

    Hello Guys,

    Please neglect this I just found the solution to decode it:
    Private Shared Function DecodeString(ByVal nodeContent As String) As String
            Dim byteContent As Byte() = Convert.FromBase64String(nodeContent)
            Return System.Text.Encoding.UTF8.GetString(byteContent)
        Catch generatedExceptionName As Exception
            Return nodeContent
        End Try
    End Function
    Private Shared Function DecodeMatch(ByVal m As Match) As String
        Return DecodeString(m.Groups(2).Value)
    End Function

Back to Top