add entitydefs, and can read the AMP between </style> and </head>