Html source to String | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 3

Html source to String

Hi, how can i get entire html source code to string? The page just have a few lines.

19th Jan 2019, 1:15 PM
João Duarte
João Duarte - avatar
5 Réponses
+ 5
If you need programmaticaly read html file from your hd, then javascript won't help. Use php, java or node.js
21st Jan 2019, 9:02 AM
Алексей Р.
Алексей Р. - avatar
19th Jan 2019, 1:53 PM
Алексей Р.
Алексей Р. - avatar
+ 3
I do not quite understand what the problem is. If you need proper rendering of html code, you can just copy code to string like this https://code.sololearn.com/W2SQBgmAV67M/?ref=app
21st Jan 2019, 9:00 AM
Алексей Р.
Алексей Р. - avatar
+ 2
I want to get other html page not page loaded. I have index.html and want to load demo.html to string to use it in index.html.
21st Jan 2019, 8:16 AM
João Duarte
João Duarte - avatar
+ 2
Ok thx
21st Jan 2019, 3:58 PM
João Duarte
João Duarte - avatar