Category
Version
Please specify what version of the library you are using: [1.0.3]
Expected / Desired Behavior / Question
It appears that the ClientSideText part is not returning the whole HTML block. During my investigation I had the following contents created in my text web part:

When I try to retrieve the HTML from this web part, it only returns the table, the text in red + quote is removed.
During a debug run I saw this:

After the regex match, I get this:

Testing out the used regex to get the HTML you see that part of it gets excluded:

The /<div[^>]*data-sp-rte[^>]*>(.*?)<\/div>/i should be changed to /<div[^>]*data-sp-rte[^>]*>(.*?)<\/div>$/i in order to get the whole HTML block:

Category
Version
Please specify what version of the library you are using: [1.0.3]
Expected / Desired Behavior / Question
It appears that the
ClientSideTextpart is not returning the whole HTML block. During my investigation I had the following contents created in my text web part:When I try to retrieve the HTML from this web part, it only returns the table, the text in red + quote is removed.
During a debug run I saw this:
After the regex match, I get this:
Testing out the used regex to get the HTML you see that part of it gets excluded:
The
/<div[^>]*data-sp-rte[^>]*>(.*?)<\/div>/ishould be changed to/<div[^>]*data-sp-rte[^>]*>(.*?)<\/div>$/iin order to get the whole HTML block: