{"id":242,"date":"2023-12-13T09:39:40","date_gmt":"2023-12-13T09:39:40","guid":{"rendered":"https:\/\/vkrastev1blog.com\/?p=242"},"modified":"2023-12-13T09:39:40","modified_gmt":"2023-12-13T09:39:40","slug":"html-code-as-iframe-source-rather-than-a-url","status":"publish","type":"post","link":"https:\/\/vkrastev1blog.com\/2023\/12\/13\/html-code-as-iframe-source-rather-than-a-url\/","title":{"rendered":"URL \u0915\u0947 \u092c\u091c\u093e\u092f IFRAME \u0938\u094d\u0930\u094b\u0924 \u0915\u0947 \u0930\u0942\u092a \u092e\u0947\u0902 HTML \u0915\u094b\u0921"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u0906\u092a HTML \u0915\u094b\u0921 \u0915\u094b Iframe \u092e\u0947\u0902 \u0936\u093e\u092e\u093f\u0932 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093f\u090f srcdoc \u0935\u093f\u0936\u0947\u0937\u0924\u093e \u0915\u093e \u0909\u092a\u092f\u094b\u0917 \u0915\u0930 \u0938\u0915\u0924\u0947 \u0939\u0948\u0902\u0964<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;iframe srcdoc=\"&lt;html&gt;&lt;body&gt;Hello, &lt;b&gt;world&lt;\/b&gt;.&lt;\/body&gt;&lt;\/html&gt;\"&gt;&lt;\/iframe&gt;<br><br>For JSF as htmlCode is the code as String<br>&lt;iframe srcdoc=\"${bean.htmlCode}\"&gt;&lt;\/iframe&gt;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u092f\u0926\u093f \u0906\u092a\u0915\u093e HTML\u00a0<a href=\"https:\/\/stackoverflow.com\/questions\/6102636\/html-code-as-iframe-source-rather-than-a-url#comment102845856_30273995\">\u0926\u094b\u0939\u0930\u0947 \u0909\u0926\u094d\u0927\u0930\u0923 \u091a\u093f\u0939\u094d\u0928 \u0936\u093e\u092e\u093f\u0932 \u0939\u0948\u0902<\/a>, \u0935\u093f\u091a\u093e\u0930 \u0915\u0930\u0928\u093e\u00a0<a href=\"https:\/\/stackoverflow.com\/questions\/4015345\/how-do-i-properly-escape-quotes-inside-html-attributes\">\u0907\u0938\u0915\u0947 \u0926\u094b\u0939\u0930\u0947 \u0909\u0926\u094d\u0927\u0930\u0923 \u091a\u093f\u0939\u094d\u0928\u094b\u0902 \u0938\u0947 \u092c\u091a\u0928\u093e<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0906\u092a \u0915\u093f\u0938\u0940 Iframe \u092e\u0947\u0902 HTML \u0915\u094b\u0921 \u0936\u093e\u092e\u093f\u0932 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093f\u090f srcdoc \u0935\u093f\u0936\u0947\u0937\u0924\u093e \u0915\u093e \u0909\u092a\u092f\u094b\u0917 \u0915\u0930 \u0938\u0915\u0924\u0947 \u0939\u0948\u0902\u0964 \u092f\u0926\u093f \u0906\u092a\u0915\u0947 HTML \u0926\u094b\u0939\u0930\u0947 \u0909\u0926\u094d\u0927\u0930\u0923 \u091a\u093f\u0939\u094d\u0928 \u0936\u093e\u092e\u093f\u0932 \u0939\u0948\u0902, \u0924\u094b \u0926\u094b\u0939\u0930\u0947 \u0909\u0926\u094d\u0927\u0930\u0923 \u091a\u093f\u0939\u094d\u0928\u094b\u0902 \u0938\u0947 \u092c\u091a\u0947\u0902<\/p>\n","protected":false},"author":65283547,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_wpcom_ai_launchpad_first_post":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":false,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1017],"tags":[767854373,3908],"class_list":["post-242","post","type-post","status-publish","format-standard","hentry","category-1017","tag-767854373","tag-3908"],"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4CoHV-3U","jetpack-related-posts":[{"id":247,"url":"https:\/\/vkrastev1blog.com\/2024\/04\/11\/how-to-create-pdf-from-html-or-image-using-java-pdfbox-framework\/","url_meta":{"origin":242,"position":0},"title":"\u091c\u093e\u0935\u093e \u092a\u0940\u0921\u0940\u090f\u092b\u092c\u0949\u0915\u094d\u0938 \u092b\u094d\u0930\u0947\u092e\u0935\u0930\u094d\u0915 \u0915\u093e \u0909\u092a\u092f\u094b\u0917 \u0915\u0930\u0915\u0947 HTML \u092f\u093e \u091b\u0935\u093f \u0938\u0947 \u092a\u0940\u0921\u0940\u090f\u092b \u0915\u0948\u0938\u0947 \u092c\u0928\u093e\u090f\u0902","author":"vkrastev2014","date":"11.04.2024","format":false,"excerpt":"Following example code here: In pom.xml insert or get the jar files and add them to the java project if you don't use maven <repositories> <repository> <id>jitpack.io<\/id> <url>https:\/\/jitpack.io<\/url> <\/repository> <\/repositories> <!-- https:\/\/mvnrepository.com\/artifact\/org.apache.pdfbox\/pdfbox --> <dependency> <groupId>org.apache.pdfbox<\/groupId> <artifactId>pdfbox<\/artifactId> <version>3.0.2<\/version> <\/dependency> <!-- https:\/\/mvnrepository.com\/artifact\/com.github.hkirk\/java-html2image --> <dependency> <groupId>com.github.hkirk<\/groupId> <artifactId>java-html2image<\/artifactId> <version>0.9<\/version> <\/dependency> and Java code here\u2026","rel":"","context":"In &quot;\u091c\u093e\u0935\u093e&quot;","block_context":{"text":"\u091c\u093e\u0935\u093e","link":"https:\/\/vkrastev1blog.com\/category\/%e0%a4%9c%e0%a4%be%e0%a4%b5%e0%a4%be\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":107,"url":"https:\/\/vkrastev1blog.com\/2014\/05\/20\/important-git-commands\/","url_meta":{"origin":242,"position":1},"title":"\u092e\u0939\u0924\u094d\u0935\u092a\u0942\u0930\u094d\u0923 Git \u0915\u092e\u093e\u0902\u0921 \u0914\u0930 \u091f\u094d\u092f\u0942\u091f\u094b\u0930\u093f\u092f\u0932","author":"vkrastev2014","date":"20.05.2014","format":false,"excerpt":"How to get help for a Git commands git help [-a|--all|-i|--info|-m|--man|-w|--web] [COMMAND] Example: git help git It launches a browser and shows a help in HTML. Setting up local repository and making initial push: cd my_project git init git add * git commit -m \"My initial commit message\" git remote\u2026","rel":"","context":"In &quot;\u091c\u093e\u0935\u093e&quot;","block_context":{"text":"\u091c\u093e\u0935\u093e","link":"https:\/\/vkrastev1blog.com\/category\/%e0%a4%9c%e0%a4%be%e0%a4%b5%e0%a4%be\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":129,"url":"https:\/\/vkrastev1blog.com\/2014\/05\/26\/new-gpu-bitcoin-miner-is-there-named-diamantminer-how-to-install-on-windows\/","url_meta":{"origin":242,"position":2},"title":"\u0928\u092f\u093e GPU \u092c\u093f\u091f\u0915\u0949\u0907\u0928 \u092e\u093e\u0907\u0928\u0930 \u0939\u0948 \u091c\u093f\u0938\u0915\u093e \u0928\u093e\u092e DiamantMiner \u0939\u0948\u0964 \u0935\u093f\u0902\u0921\u094b\u091c\u093c \u092a\u0930 \u0915\u0948\u0938\u0947 \u0907\u0902\u0938\u094d\u091f\u0949\u0932 \u0915\u0930\u0947\u0902","author":"vkrastev2014","date":"26.05.2014","format":false,"excerpt":"New GPU Bitcoin Miner is there named DiamantMiner. How to install on Windows I have tried the new bitcoin miner and I find it very good. What you should do to install it on Windows is described here. How to build and install DiamantMiner requires the SDK for Java Version\u2026","rel":"","context":"In &quot;\u0905\u0928\u094d\u092f&quot;","block_context":{"text":"\u0905\u0928\u094d\u092f","link":"https:\/\/vkrastev1blog.com\/category\/%e0%a4%85%e0%a4%a8%e0%a5%8d%e0%a4%af\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":80,"url":"https:\/\/vkrastev1blog.com\/2014\/05\/13\/eclipse-java-code-complition-not-working\/","url_meta":{"origin":242,"position":3},"title":"\u090f\u0915\u094d\u0932\u093f\u092a\u094d\u0938\/\u091c\u093e\u0935\u093e \u0915\u094b\u0921 \u092a\u0942\u0930\u094d\u0923\u0924\u093e \u0915\u093e\u092e \u0928\u0939\u0940\u0902 \u0915\u0930 \u0930\u0939\u0940 \u0939\u0948","author":"vkrastev2014","date":"13.05.2014","format":false,"excerpt":"Try restoring the default options in 'Windows > Preferences > Java > Editor > Content Assist > Advanced' An example of the kind of data you see in this preference screen, however not necessarily what you currently have. That was the only way that worked for me. I restored my\u2026","rel":"","context":"In &quot;\u091c\u093e\u0935\u093e&quot;","block_context":{"text":"\u091c\u093e\u0935\u093e","link":"https:\/\/vkrastev1blog.com\/category\/%e0%a4%9c%e0%a4%be%e0%a4%b5%e0%a4%be\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":194,"url":"https:\/\/vkrastev1blog.com\/2022\/03\/30\/java-configure-log4j2-in-your-project\/","url_meta":{"origin":242,"position":4},"title":"\u091c\u093e\u0935\u093e \u0906\u092a\u0915\u0947 \u092a\u094d\u0930\u094b\u091c\u0947\u0915\u094d\u091f \u092e\u0947\u0902 Log4j2 \u0915\u094b \u0915\u0949\u0928\u094d\u092b\u093c\u093f\u0917\u0930 \u0915\u0930\u0924\u093e \u0939\u0948","author":"vkrastev2014","date":"30.03.2022","format":false,"excerpt":"Log4j2 and SLF4j Binding DependenciesTo make Log4j2 work with SLF4J, we need to include the following 3 dependencies. log4j-slf4j-impl.jar \u2013 Log4j 2 SLF4J binding. It allows applications coded to the SLF4J API to use Log4j2 as the implementation.log4j-api.jar \u2013 provides the adapter components required for implementers to create a logging\u2026","rel":"","context":"In &quot;\u091c\u093e\u0935\u093e&quot;","block_context":{"text":"\u091c\u093e\u0935\u093e","link":"https:\/\/vkrastev1blog.com\/category\/%e0%a4%9c%e0%a4%be%e0%a4%b5%e0%a4%be\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":55,"url":"https:\/\/vkrastev1blog.com\/2014\/05\/11\/important-shell-script-commands-which-are-oft-used\/","url_meta":{"origin":242,"position":5},"title":"\u092e\u0939\u0924\u094d\u0935\u092a\u0942\u0930\u094d\u0923 \u0936\u0948\u0932 \u0938\u094d\u0915\u094d\u0930\u093f\u092a\u094d\u091f \u0915\u092e\u093e\u0902\u0921 \u091c\u094b \u0905\u0915\u094d\u0938\u0930 \u0909\u092a\u092f\u094b\u0917 \u0915\u093f\u090f \u091c\u093e\u0924\u0947 \u0939\u0948\u0902","author":"vkrastev2014","date":"11.05.2014","format":false,"excerpt":"Here is a list of some important shell commands: ---- Using Screen command screen -ls -- for a list of avaliable active screens screen -x .... - the Name from -ls output to join to this active screen Go out of the Screen with 'ctrl a+d' without stopping it ----\u2026","rel":"","context":"In &quot;\u0905\u0928\u094d\u092f&quot;","block_context":{"text":"\u0905\u0928\u094d\u092f","link":"https:\/\/vkrastev1blog.com\/category\/%e0%a4%85%e0%a4%a8%e0%a5%8d%e0%a4%af\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_likes_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/posts\/242","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/users\/65283547"}],"replies":[{"embeddable":true,"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/comments?post=242"}],"version-history":[{"count":4,"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/posts\/242\/revisions"}],"predecessor-version":[{"id":246,"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/posts\/242\/revisions\/246"}],"wp:attachment":[{"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/media?parent=242"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/categories?post=242"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/tags?post=242"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}